Skip to content

Modern Chrono Instant UnixSeconds

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Date and Time (Chrono) › Chrono Date and Time › Instant.UnixSeconds

Instant.UnixSeconds

Returns the whole seconds since 1970-01-01 UTC, dropping any fraction.

Syntax

Instant.UnixSeconds

Examples

#import "std/chrono"
using chrono

dim as Instant i = Instant.FromUnixSeconds( 1767225600 )

print i.UnixSeconds          '' 1767225600

'' TRUNCATES toward the epoch rather than rounding, so a sub-second
'' remainder is dropped
print Instant.FromUnixMilliseconds( 1500 ).UnixSeconds       '' 1

Library: Chrono Date and Time
Category: Date and Time (Chrono)
Documented under: The Members

Clone this wiki locally