day of month
hour of day (0-23)
microseconds of millisecond (0, 999)
milliseconds of second (0, 999)
minutes of hour (0-59)
month of year
offset hours, negative or positive
offset minutes, negative or positive
seconds of minute (0-59)
year
Regular expression used to validate input string for parseInSyncDate.
Regular expression used to test if a string is a media string.
Pads a string to specified length using given character.
Formats a number to a string of given digits, padded with leading 0's (example: timeUnit(3, 1) => "001")
Takes an optional partial InsyncDate object and returns an InSyncDate. If no argument is given, will return current time as InSyncDate (up to millisecond precision).
Takes a partial InSyncDate and merges it with [[DATE_OBJ_DEFAULTS|default values]].
Creates a new InSyncDate using the current time
Formats a numeral date value (0-*) from a givenInSyncDate to a string like "01", "02", etc.
Formats a numeral hour notation (0-23) from a given InSyncDate to a string like "00", "01", etc.
Formats a numeral minutes notation (0-59) from a given InSyncDate to a string like "00", "01", etc.
Formats a numeral month value (0-11) from a given InSyncDate to a string like "01", "02", etc.
Formats offset of a given InSyncDate into an ISO8601 offset string like "+01:00", "-01:00", "Z", etc.
Formats a numeral notation of milliseconds and microseconds from a given [[InSybncDate]] into a string like ".000001", ".123", etc. It will attempt to remove trailing zeroes. So for example .123000 will be truncated to .123.
Formats a numeral seconds notation (0-59) from a given InSyncDate to a string like "00", "01", etc.
Takes a date and returns an InSyncDate from it.
Takes a media time and returns an InSyncDate. Note that this will have year, month and day set to 0
Takes a timestamp in microseconds and returns an InSyncDate.
microseconds elapsed since Epoch.
Takes a string, and returns true if it is a media time like "01:12.44.123". Otherwise returns false;
String to test.
Parses a date string into an InSyncDate.
Parses a string like "+01:00" to the offsetHours and offsetMinutes of InSyncDate.
Offset string like "+01:00" or "-01:00"
Takes an InSyncDate and creates a Date out of it (loses microsecond precision).
InSyncDate object
Takes a (partial) InSyncDate and returns an ISO8601 string like "2019-10-11T11:55:38.511186Z"
The (partial) InSyncDate to convert to an ISO8601 string.
Parses a string to an integer, functional equivalent of parseInt(x, 10
Takes a (partial) InSyncDate and returns a media time like "01:12:44.124". Note that this only displays the hours, minutes, seconds, milliseconds of a date, the rest is not visible.
Takes an InSyncDate and returns a microsecond timestamp from it (microseconds since Epoch).
InSyncDate object
Generated using TypeDoc
Defines time elapsed since Epoch, with up to microsecond precision.