Skip to content

Modern Chrono DateTime Hour

Paul Squires edited this page Oct 19, 2026 · 1 revision

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

DateTime.Hour

Returns the hour, 0 to 23.

Syntax

DateTime.Hour

Examples

#import "std/chrono"
using chrono

dim as DateTime d = DateTime( 2026, 8, 13, 14, 30, 5, 123 )
print d.Hour                 '' 14 -- 0 to 23, no AM/PM here

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

Clone this wiki locally