Time.ToText
時刻値のテキスト形式の表記を返します。
Syntax
Time.ToText(
time as time,
optional options as any,
optional culture as text
) as text
Remarks
time のテキスト形式の表記を返します。省略可能な record パラメーター options を指定して、追加のプロパティを指定できます。culture は従来のワークフローでのみ使用されます。record には、次のフィールドを含めることができます:
Format: 使用する形式を示すtext値。https://go.microsoft.com/fwlink/?linkid=2180104 と https://go.microsoft.com/fwlink/?linkid=2180105 を参照してください。このフィールドを省略するか、nullを指定すると、Cultureによって定義された既定値を使用して日付の形式が設定されます。Culture:Formatが null でない場合、Cultureが一部の書式指定子を制御します。たとえば、"en-US"では、"tt"は"AM" or "PM"ですが、"ar-EG""tt"では"ص" or "م"です。Formatがnullの場合、Cultureが既定の形式を制御し使用します。Cultureがnullまたは省略される場合、Culture.Currentが使用されます。
options と culture をテキスト値にすることもできます。この場合、options = [Format = options, Culture = culture] の場合と動作が同じになります。
Examples
Example #1
<code>#time(01, 30, 25)</code> を <code>text</code> 値に変換します。<i>結果出力が現在のカルチャに応じて異なる場合があります。</i>
Time.ToText(#time(11, 56, 2))
Result:
"11:56 AM"
Example #2
カスタム形式とドイツ語のカルチャを使用して変換します 。
Time.ToText(#time(11, 56, 2), [Format="hh:mm", Culture="de-DE"])
Result:
"11:56"
Example #3
標準時間形式を使用して変換します。
Time.ToText(#time(11, 56, 2), [Format="T", Culture="de-DE"])
Result:
"11:56:02"
Category
Time