有人可以推荐如何在特定时区获取当前时间/日期吗?
这是我到目前为止所得到的:
OrderLines Table
+-------------+---------+----------------------+
| OrderNumber | Product | GeneratedEntries |
+-------------+---------+----------------------+
| 1 | A | PD~10005 |
| 1 | B | PD~10006~ |
| 1 | C | PD~10007~10008~10009 |
| 2 | R | PD~10010~~10011 |
| 2 | L | ~PD~10012~~ |
| 2 | Z | PD~10013 PD~10014 |
+-------------+---------+----------------------+
Production Table
+-----------------+
| ProductionEntry |
+-----------------+
| 10005 |
| 10006 |
| 10007 |
| 10008 |
| 10009 |
| 10010 |
| 10011 |
| 10012 |
| 10013 |
| 10014 |
+-----------------+
它给了我当前的时间,我不确定如何正确更改时区,以便在指定的时区内打印时间......