Constructor
milliseconds since 1-1-1970
timezonecomplete.Argument.UnixMillis for non-integer unixMillis
Constructor
Separate timestamp components (year, month, ...)
timezonecomplete.Argument.Components if components
is not an object
timezonecomplete.Argument.* for invalid components (* = Year, Month, Day, Hour, Minute, Second, Milli)
nothing
Equality function
TypeError if other is not an Object
Static
fromReturns a TimeStruct from the given year, month, day etc
Optional
year: numberYear e.g. 1970
Optional
month: numberMonth 1-12
Optional
day: numberDay 1-31
Optional
hour: numberHour 0-23
Optional
minute: numberMinute 0-59
Optional
second: numberSecond 0-59 (no leap seconds)
Optional
milli: numberMillisecond 0-999
timezonecomplete.Argument.Year for invalid year
timezonecomplete.Argument.Month for invalid month
timezonecomplete.Argument.Day for invalid day of month
timezonecomplete.Argument.Hour for invalid hour
timezonecomplete.Argument.Minute for invalid minute
timezonecomplete.Argument.Second for invalid second
timezonecomplete.Argument.Milli for invalid milliseconds
Static
fromCreate a TimeStruct from a JavaScript date
The date
Which functions to take (getX() or getUTCX())
nothing
Static
fromReturns a TimeStruct from an ISO 8601 string WITHOUT time zone
timezonecomplete.Argument.S if s
is not a proper iso string
Static
fromCreate a TimeStruct from a number of unix milliseconds (backward compatibility)
timezonecomplete.Argument.UnixMillis for non-integer milliseconds
Basic representation of a date and time