@hatch:datetime v0.1.1
Timezone-aware DateTime value type, Duration arithmetic, RFC 3339 parse + format.
$
hatch add @hatch:datetime
Timezone-aware DateTime value type, Duration arithmetic, RFC 3339 parse + format.
Duration.new_(secs)
Duration.seconds
Duration.minutes
Duration.hours
Duration.days
Duration.toString
Duration.static seconds(n)
Duration.static minutes(n)
Duration.static hours(n)
Duration.static days(n)
Duration.+(other)
Duration.-(other)
Duration.-
Duration.*(n)
Duration.==(other)
Duration.!=(other)
Duration.<(other)
Duration.<=(other)
Duration.>(other)
Duration.>=(other)
DateTime.new_(unix, offsetMinutes)
DateTime.unix
DateTime.offsetMinutes
DateTime.year
DateTime.month
DateTime.day
DateTime.hour
DateTime.minute
DateTime.second
DateTime.millisecond
DateTime.weekday
DateTime.iso
DateTime.offsetSuffix_
DateTime.offsetCompact_
DateTime.toUtc
DateTime.toString
DateTime.static now
DateTime.static fromUnix(seconds)
DateTime.static fromUnix(seconds, offsetMinutes)
DateTime.static utc(year, month, day)
DateTime.static utc(year, month, day, hour, minute, second)
DateTime.static parse(text)
DateTime.format(pattern)
DateTime.add(d)
DateTime.subtract(other)
DateTime.diff(other)
DateTime.withOffset(offsetMinutes)
DateTime.==(other)
DateTime.!=(other)
DateTime.<(other)
DateTime.<=(other)
DateTime.>(other)
DateTime.>=(other)
DateTime.toJson()
DateTime.static daysFromCivil_(y, m, d)
DateTime.static pad_(n, width)
Parser_.static parse_(text)
Parser_.static readInt_(s, at, len)
Parser_.static expect_(s, at, ch)
Parser_.static isDigit_(c)
Parser_.static digitValue_(c)