Duration
Documentation of Synapse Z Duration class
Duration.TimeSinceEpoch
table Duration.TimeSinceEpoch()
returns a new duration object with its fields being current time since epoch
Duration.FromNanoseconds
table Duration.FromNanoseconds(nanoseconds: number)
returns a new duration object with its fields being the nanoseconds time
Duration.FromMicroseconds
table Duration.FromMicroseconds(microseconds: number)
returns a new duration object with its fields being the microseconds time
Duration.FromMilliseconds
table Duration.FromMilliseconds(milliseconds: number)
returns a new duration object with its fields being the milliseconds time
Duration.FromSeconds
table Duration.FromSeconds(seconds: number)
returns a new duration object with its fields being the seconds time
Duration.FromMinutes
table Duration.FromMinutes(minutes: number)
returns a new duration object with its fields being the minutes time
Duration.FromHours
table Duration.FromHours(hours: number)
returns a new duration object with its fields being the hours time
Duration.FromDays
table Duration.FromDays(days: number)
returns a new duration object with its fields being the days time
Duration.FromWeeks
table Duration.FromWeeks(weeks: number)
returns a new duration object with its fields being the weeks time
Duration.FromMonths
table Duration.FromMonths(months: number)
returns a new duration object with its fields being the months time
Duration.FromYears
table Duration.FromYears(years: number)
returns a new duration object with its fields being the years time
Field | Type | Description |
---|---|---|
Nanoseconds | number | the time in nanoseconds |
Microseconds | number | the time in microseconds |
Milliseconds | number | the time in milliseconds |
Seconds | number | the time in seconds |
Minutes | number | the time in minutes |
Hours | number | the time in hours |
Days | number | the time in days |
Weeks | number | the time in weeks |
Months | number | the time in months |
Years | number | the time in years |