Jiff API

class jiff.Zoned(timestamp, time_zone)
static from_string(str)
class jiff.Span
abs() Span

Returns a new span with the same magnitude but always positive.

days
hours
is_negative() bool

Returns true if the span is negative.

is_zero() bool

Returns true if the span is zero.

microseconds
milliseconds
minutes
months
nanoseconds
negate() Span

Returns a new span with the same magnitude but the opposite sign.

seconds
years
class jiff.TimeZone
static utc()
class jiff.Timestamp(seconds, nanoseconds)
as_millisecond()
as_nanosecond()
as_second()
static from_microsecond(microseconds)
static from_millisecond(milliseconds)
static from_nanosecond(nanoseconds)
static from_second(seconds)
static from_string(str)
intz(time_zone_name)
is_zero()
static now()
subsec_microsecond()