DateUtils.FormatSameDayTime メソッド

定義

オーバーロード

名前 説明
FormatSameDayTime(Int64, Int64, AbbreviationLength, AbbreviationLength)
古い.
FormatSameDayTime(Int64, Int64, Int32, Int32)

現在と同じ日にある場合は時刻のみを表示し、別の日の場合は日付のみを表示するように日付/時刻を書式設定します。

FormatSameDayTime(Int64, Int64, AbbreviationLength, AbbreviationLength)

注意事項

This method was improperly bound. Please use FormatSameDayTime(Int64, Int64, Int32, Int32).

[System.Obsolete("This method was improperly bound. Please use FormatSameDayTime(Int64, Int64, Int32, Int32).")]
public static string? FormatSameDayTime(long then, long now, Android.Text.Format.AbbreviationLength dateStyle, Android.Text.Format.AbbreviationLength timeStyle);
[<System.Obsolete("This method was improperly bound. Please use FormatSameDayTime(Int64, Int64, Int32, Int32).")>]
static member FormatSameDayTime : int64 * int64 * Android.Text.Format.AbbreviationLength * Android.Text.Format.AbbreviationLength -> string

パラメーター

then
Int64
now
Int64
dateStyle
AbbreviationLength
timeStyle
AbbreviationLength

返品

属性

注釈

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

FormatSameDayTime(Int64, Int64, Int32, Int32)

現在と同じ日にある場合は時刻のみを表示し、別の日の場合は日付のみを表示するように日付/時刻を書式設定します。

public static string? FormatSameDayTime(long then, long now, int dateStyle, int timeStyle);
static member FormatSameDayTime : int64 * int64 * int * int -> string

パラメーター

then
Int64

書式設定する日付

now
Int64

基準時間

dateStyle
Int32

日付部分の書式を設定する方法。

timeStyle
Int32

時刻部分の書式を設定する方法。

返品

注釈

現在と同じ日にある場合は時刻のみを表示し、別の日の場合は日付のみを表示するように日付/時刻を書式設定します。

パラメーター dateFormat と timeFormat はそれぞれ、 java.text.DateFormat#DEFAULTjava.text.DateFormat#FULLjava.text.DateFormat#LONGjava.text.DateFormat#MEDIUM 、または java.text.DateFormat#SHORT

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象