![]() ![]() Date.UTC() works similarly, but it interprets the components as UTC time and also accepts a single argument representing the year. ![]() The Date() constructor can be called with two or more arguments, in which case they are interpreted as the year, month, day, hour, minute, second, and millisecond, respectively, in local time. There are two groups of Date methods: one group gets and sets various date components by interpreting the timestamp as a local time, while the other uses UTC. In essence, the timezone offset is the offset from UTC time, at the time represented by the Date object and at the location of the host environment. Note that the timezone offset does not only depend on the current timezone, but also on the time represented by the Date object, because of daylight saving time and historical changes. The getTimezoneOffset() method returns the difference between UTC and the local time in minutes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |