Skip to content

Modern Chrono TimeSpan TotalDays

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

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

TimeSpan.TotalDays

Returns the whole duration in days, with a fraction.

Syntax

TimeSpan.TotalDays

Examples

#import "std/chrono"
using chrono

dim as TimeSpan t = TimeSpan( 1, 2, 3, 4, 0 )      '' 1d 2h 3m 4s

'' TOTALS are the WHOLE span in that unit, fractionally
print t.TotalDays            '' 1.0855...

'' The component property is the broken-down piece instead
print t.Days                 '' 1

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

Clone this wiki locally