Skip to content

Modern Chrono Instant Ticks

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

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

Instant.Ticks

Returns the 100 ns ticks since 0001-01-01, counted on the value's own clock.

Syntax

Instant.Ticks

Examples

#import "std/chrono"
using chrono

dim as DateTime d = DateTime( 2026, 8, 13, 14, 30, 5, 123 )
'' Ticks since 0001-01-01 in the value's OWN offset -- civil ticks, not
'' UTC ones. AssumeUtc( ).Ticks or ToInstant( ).Ticks give the moment.
print d.Ticks > 0            '' -1 (true)

print DateTime.FromTicks( d.Ticks, d.OffsetMinutes ).ToIsoString( )

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

Clone this wiki locally