twelveHourTime

Specifies whether the time function uses a 12-hour clock or a 24-hour clock.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

set the twelveHourTime to {true | false}

# Examples

set the twelveHourTime to false set the twelveHourTime to (the hilite of button "12 Hours")

# Description

Use the twelveHourTime property to operate with military-style 24-hour time.

The setting of the twelveHourTime property affects the format in which the time property reports a time. It also affects the format of the convert command when a time specifier is used.

If the twelveHourTime is true, the time function returns a value including AM or PM. If the twelveHourTime is false, AM or PM is not included; instead, the hour is not reset to 1 after noon. For example, the time 2:35 PM in 12-hour time is equivalent to 14:35 in 24-hour time.

# Tags

# See

- **command:** convert - **function:** format, time - **control structure:** function - **glossary:** property, return