获得负 UTC 时间的可能原因是什么?
what is the possible reason behind getting negative UTC time?
m_date - (moment.tz.zone('America/New_York').offset(m_date) * 60000);
这是我正在使用的代码,我实际上是在传递一个日期并返回上述值。使用的库是:moment-timezone
负时间表示年点之前的时间,1970。
如果 m_date 在 1970 年之前,那么这就有意义了。
m_date - (moment.tz.zone('America/New_York').offset(m_date) * 60000);
这是我正在使用的代码,我实际上是在传递一个日期并返回上述值。使用的库是:moment-timezone
负时间表示年点之前的时间,1970。
如果 m_date 在 1970 年之前,那么这就有意义了。