Skip to content

Modern Chrono LocalTime LocalTime

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

Home › Date and Time (Chrono) › Chrono Date and Time › LocalTime.LocalTime

LocalTime.LocalTime

Creates a time of day from hours, minutes, seconds and milliseconds; midnight if none.

Syntax

LocalTime( )
LocalTime( h, mi, s, ms )

Notes

  • midnight

Examples

#import "std/chrono"
using chrono

'' A time of day with no date and no zone. One LONGINT of 100 ns ticks.
dim as LocalTime t = LocalTime( 14, 30, 5, 0 )

print t.Hour & ":" & t.Minute & ":" & t.Second      '' 14:30:5
print t.ToIsoString( )                              '' 14:30:05

'' Out-of-range construction yields Invalid rather than raising
dim as LocalTime bad = LocalTime( 25, 0, 0, 0 )
print bad.IsValid            '' false

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

Clone this wiki locally