Edit Codes for Time Data

In Table 17, following, x represents the character to be used as a delimiter between time values. It can be any special character, including blank, but not letters or numbers.

Table 17. Clock Format Edit Codes
Edit Code Format Notes
TTSx HHxMMxSS 24-hour clock, including seconds
TTCx HHxMMxSS 12-hour clock, including seconds
TTAx HHxMM Abbreviated (no seconds)
TTAN HHMM Abbreviated (no seconds, no delimiter)
TTUx HHxMM AM HHxMM PM USA format
TTL Locally defined. See your QMF administrator for format information

Default Time Format

TT Displays time in the format specified at the database requestor.

Time edit code examples

The examples in Table 18, following, show the time, 1:25:10 PM, formatted with various time edit codes.

Table 18. Time Format Edit Codes
Edit Code Format Notes
TTS. 13.25.10 ISO, European formats
TTS: 13:25:10 JIS format
TTU: 01:25 PM USA format
TTS, 13,25,10 Hours, minutes, seconds (24 hr.), delimiter: comma (,)
TTC: 01:25:10 Hours, minutes, seconds (12 hr.), delimiter: colon (:)
TTA. 13.25 Hours, minutes (24 hr.), delimiter: period (.)
TTA, 13,25 Hours, minutes (24 hr.), delimiter: comma (,)
TTAN 1325 Hours, minutes (24 hr.), no delimiter
[ Previous Page | Next Page | Contents | Index ]