Skip to content

Modern Chrono Instant Instant

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

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

Instant.Instant

Creates a moment on the UTC timeline from a tick count; Invalid with no argument.

Syntax

Instant( )
Instant( ticks )

Examples

#import "std/chrono"
using chrono

'' An INSTANT is a moment on the UTC timeline -- a tick count with no
'' calendar fields and no offset. A DateTime is the civil view of one.
dim as Instant i = Instant.FromUnixSeconds( 1767225600 )

print i.ToIsoString( )       '' 2026-01-01T00:00:00Z
print i.UnixSeconds          '' 1767225600

'' Use Instant to STORE and COMPARE a moment; use DateTime to show it
'' to somebody

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

Clone this wiki locally