Skip to content

Modern Chrono TimeSpan MinValue

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

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

TimeSpan.MinValue

Returns the most negative duration a TimeSpan can hold.

Syntax

TimeSpan.MinValue

Examples

#import "std/chrono"
using chrono

dim as TimeSpan t = TimeSpan.MinValue( )

print t.IsNegative           '' true
print t.TotalDays < -1000000 '' -1 (true)

'' Arithmetic NEVER wraps: going below this yields Invalid
print t.Subtract( TimeSpan.FromDays( 1 ) ).IsValid      '' false

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

Clone this wiki locally