javascript - Moment.js Timezone in Unix Format always returns same timestamp -


Whenever I try to return a Unix timestamp, I always specify Timeston (for local time) to me instead of the time zone. ..If I use a format like "H: mm a" then I get the right time. How can I get a time zone for a unix timestamp (or preferably millisecond string) of moment.js?

  moment.tz.add (['America / Los_Angeles | PST PDT | 80 70 | 0101 | 1Lzm0 1zb0 Op0', 'America / New_York | EST EDT | 50 40 | 0101 | 1st Lease 50 1zb0 Op0 ']); Console.log ("Current time in California is:" + (Moment). Tz ('America / Los_Angeles'). Format ("X")); Console.log ("Current time in New York:" + (moment). Tz ('America / New_York'). Format ("X");  


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

How to access user directory in lazarus? -

java - Gradle dependencies: compile project by relative path -