std.protocol.time

-format

multimethod

added in 3.0

a general function to format what time looks like

-formatter

multimethod

added in 3.0

create a representation of a formatter

-from-length

multimethod

added in 3.0

creates a representation of a duration

-from-long

multimethod

added in 3.0

creates a time representation from a long

-now

multimethod

added in 3.0

creates a representation of the current time

-parse

multimethod

added in 3.0

generic parse function for a string representation

-parser

multimethod

added in 3.0

creates a parser for parsing strings

-time-meta

multimethod

added in 3.0

accesses the meta properties of a class

IDuration

protocol

members

-to-length

(-to-length d opts)

IInstant

protocol

members

-get-timezone

(-get-timezone t)

-has-timezone?

(-has-timezone? t)

-to-long

(-to-long t)

-with-timezone

(-with-timezone t tz)

IRepresentation

protocol

members

-day

(-day t opts)

-day-of-week

(-day-of-week t opts)

-hour

(-hour t opts)

-millisecond

(-millisecond t opts)

-minute

(-minute t opts)

-month

(-month t opts)

-second

(-second t opts)

-year

(-year t opts)