Chemical
Dark
Light
Paper
Themes
Dark
Light
Paper
Modules
cstd
core
std
compiler
compiler_runtime
lab
transformer
atomic
async
crashsave
osrand
crypto
encoding
bcrypt
uuid
regex
datetime
path
fs
compression
archive
image
audio
font
mime
json
html_comp
html_parser
html
ide
minlsp
html_ide
css_parser
css
css_ide
js_syntax
universal_parser
js_parser
js
js_cbi_lexer
js_ide
md_parser
md
md_ide
universal
universal_ide
page
net
tls
http
server
environment
process
window
webview
docgen
test_env
test
api
timezone.ch
Declarations in
timezone.ch
1
declarations
datetime
Declarations
Public only
datetime
#
Public
namespace
namespace
datetime
TimeZone
#
Public
struct
struct
TimeZone {
var
offset_secs : i64
var
tz_name :
string
}
-----------------------------------------------------------------------
init
#
Public
function
Constructor
func
init() :
TimeZone
copy
e.g. "UTC", "America/New_York", "+05:30"
copy
#
Public
function
func
copy(self : &
TimeZone
) :
TimeZone
copy
fixed
#
Public
function
func
fixed(offset_secs : i64, name :
string_view
) :
TimeZone
copy
utc
#
Public
function
func
utc() :
TimeZone
copy
local
#
Public
function
func
local() :
TimeZone
copy
offset_hours
#
Public
function
func
offset_hours(self : &
TimeZone
) : i64
copy
offset_minutes
#
Public
function
func
offset_minutes(self : &
TimeZone
) : i64
copy
equals
#
Public
function
func
equals(self : &
TimeZone
, other : &
TimeZone
) : bool
copy
format_utc_offset
#
Public
function
func
format_utc_offset(self : &
TimeZone
) :
string
copy
delete
#
function
func
delete(self : *
TimeZone
) : void
copy
-----------------------------------------------------------------------
Show Debug Info
Generated from: /home/runner/work/chemical/chemical/chemical-tcc/libs/datetime/src/timezone.ch
File ID: 253
↑