Skip to content

Modern Chrono Instant Invalid

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

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

Instant.Invalid

Returns the Invalid date-time, which never equals anything, itself included.

Syntax

Instant.Invalid

Examples

#import "std/chrono"
using chrono

dim as DateTime bad = DateTime.Invalid( )
print bad.IsValid            '' false

'' ABSORBING, and never equal to anything -- IsValid is the only test
print bad.AddDays( 1 ).IsValid           '' false
print ( bad = DateTime.Invalid( ) )      '' false

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

Clone this wiki locally