mir-algorithm — Libmir Archive
← Libmir Archive
Dlang.org
Timestamp.opCast
mir
timestamp
Timestamp
Casts timestamp to a date-time type.
Supported types up to T.stringof equivalence:
Year
YearMonth
YearMonthDay
Date
date
TimeOfDay
DateTime
SysTime
T
opCast
()
T
opCast
()
struct
Timestamp
const
@
serdeIgnore
T
opCast
(
T
)
(
)
if
(
T.stringof
== "Year" ||
T.stringof
== "YearMonth"
||
T.stringof
== "YearMonthDay"
||
T.stringof
== "Date"
||
T.stringof
== "date"
||
T.stringof
== "TimeOfDay"
||
T.stringof
== "Duration"
||
T.stringof
== "DateTime"
||
T.stringof
== "SysTime"
)
mir
timestamp
Timestamp
aliases
fromISOExtString
fromISOString
fromYamlString
toISOExtString
toISOString
toString
constructors
this
enums
Precision
functions
addMinutes
getFraction
isDuration
isLocalTime
isNegativeDuration
isOnlyTime
offset
opCast
opCmp
setLocalTimezone
toUnixTime
withOffset
static functions
fromString
fromUnixTime
onlyTime
templates
toISOStringImp
variables
day
fractionCoefficient
fractionExponent
hour
minute
month
precision
second
year
Casts timestamp to a date-time type.
Supported types up to T.stringof equivalence: