Skip to content

Modern Chrono LocalTime Hour

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

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

LocalTime.Hour

Returns the hour, 0 to 23.

Syntax

LocalTime.Hour

Examples

#import "std/chrono"
using chrono

dim as LocalTime t = LocalTime( 14, 30, 5, 0 )
print t.Hour                 '' 14

'' 0 to 23. There is no 12-hour form and no AM/PM here -- that is a
'' formatting concern, not a component one.
print LocalTime.Midnight( ).Hour        '' 0
print LocalTime.Noon( ).Hour            '' 12

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

Clone this wiki locally