Skip to content

Modern Chrono TimeSpan Zero

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

Home › Date and Time (Chrono) › Chrono Date and Time › TimeSpan.Zero

TimeSpan.Zero

Returns a duration of zero, the same as a new TimeSpan.

Syntax

TimeSpan.Zero

Examples

#import "std/chrono"
using chrono

dim as TimeSpan z = TimeSpan.Zero( )

print z.Ticks                '' 0
print z.IsZero               '' true
print z.IsNegative           '' false -- zero is not negative

'' The identity for Add, and what a default-constructed TimeSpan is
dim as TimeSpan d
print d.IsZero               '' true

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

Clone this wiki locally