api

timezone.ch

Declarations in timezone.ch

1 declarationsdatetime

Declarations

Public only
datetime#
Publicnamespace
namespace datetime
TimeZone#
Publicstruct
struct TimeZone { var offset_secs : i64 var tz_name : string }
-----------------------------------------------------------------------
init#
PublicfunctionConstructor
func init() : TimeZone
e.g. "UTC", "America/New_York", "+05:30"
copy#
Publicfunction
func copy(self : &TimeZone) : TimeZone
fixed#
Publicfunction
func fixed(offset_secs : i64, name : string_view) : TimeZone
utc#
Publicfunction
func utc() : TimeZone
local#
Publicfunction
func local() : TimeZone
offset_hours#
Publicfunction
func offset_hours(self : &TimeZone) : i64
offset_minutes#
Publicfunction
func offset_minutes(self : &TimeZone) : i64
equals#
Publicfunction
func equals(self : &TimeZone, other : &TimeZone) : bool
format_utc_offset#
Publicfunction
func format_utc_offset(self : &TimeZone) : string
delete#
function
func delete(self : *TimeZone) : void
-----------------------------------------------------------------------