नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
Syntax
Time.ToText(
time as nullable time,
optional options as any,
optional culture as nullable text
) as nullable text
About
Returns a textual representation of time. An optional record parameter, options, may be provided to specify additional properties. culture is only used for legacy workflows. The record can contain the following fields:
Format: Atextvalue indicating the format to use. For more details, go to Standard date and time format strings and Custom date and time format strings. Omitting this field or providingnullwill result in formatting the date using the default defined byCulture.Culture: WhenFormatis not null,Culturecontrols some format specifiers. For example, in"en-US""tt"is"AM" or "PM", while in"ar-EG""tt"is"ص" or "م". WhenFormatisnull,Culturecontrols the default format to use. WhenCultureisnullor omitted, Culture.Current is used.
To support legacy workflows, options and culture may also be text values. This has the same behavior as if options = [Format = options, Culture = culture].
Example 1
Convert #time(01, 30, 25) into a text value. Result output may vary depending on current culture.
Usage
Time.ToText(#time(11, 56, 2))
Output
"11:56 AM"
Example 2
Convert using a custom format and the German culture.
Usage
Time.ToText(#time(11, 56, 2), [Format="hh:mm", Culture="de-DE"])
Output
"11:56"
Example 3
Convert using standard time format.
Usage
Time.ToText(#time(11, 56, 2), [Format="T", Culture="de-DE"])
Output
"11:56:02"