MCPcopy
hub / github.com/pocketbase/pocketbase / Unix

Method Unix

tools/types/datetime.go:87–89  ·  view source on GitHub ↗

Unix returns the current DateTime as a Unix time, aka. the number of seconds elapsed since January 1, 1970 UTC.

()

Source from the content-addressed store, hash-verified

85// Unix returns the current DateTime as a Unix time, aka.
86// the number of seconds elapsed since January 1, 1970 UTC.
87func (d DateTime) Unix() int64 {
88 return d.Time().Unix()
89}
90
91// IsZero checks whether the current DateTime instance has zero time value.
92func (d DateTime) IsZero() bool {

Callers 8

TestDateTimeUnixFunction · 0.80
NewJWTFunction · 0.80
cleanMethod · 0.80
consumeMethod · 0.80
mainFunction · 0.80
migrateCreateHandlerMethod · 0.80

Calls 1

TimeMethod · 0.95

Tested by 2

TestDateTimeUnixFunction · 0.64