Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Member group

FormatTime

Declaring type: DateTimeFormat
Module: System.Globalization
Assembly: System.Runtime.dll
Source file: DateTimeFormat.rvn

Overloads / Variants

FormatTime

func FormatTime(time: TimeOfDay, format: string) -> string

Source file: DateTimeFormat.rvn

Supports empty/G for existing culture precision, O/o for invariant seven-digit precision, T/t use LongTimePattern/ShortTimePattern (US twelve-hour, otherwise 24-hour). Other specifiers fault.

Parameters

Name Type Description
time TimeOfDay
format String

Return value

String

FormatTime

func FormatTime(time: TimeOfDay) -> string

Source file: DateTimeFormat.rvn

Formats seven fractional digits; US uses a twelve-hour clock and AM/PM. Other profiles use a 24-hour clock; Swedish uses a decimal comma.

Parameters

Name Type Description
time TimeOfDay

Return value

String