DateUtils.FormatDateTime(Context, Int64, FormatStyleFlags) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
로컬 규칙에 따라 날짜 또는 시간의 형식을 지정합니다.
[Android.Runtime.Register("formatDateTime", "(Landroid/content/Context;JI)Ljava/lang/String;", "")]
public static string? FormatDateTime(Android.Content.Context? context, long millis, Android.Text.Format.FormatStyleFlags flags);
[<Android.Runtime.Register("formatDateTime", "(Landroid/content/Context;JI)Ljava/lang/String;", "")>]
static member FormatDateTime : Android.Content.Context * int64 * Android.Text.Format.FormatStyleFlags -> string
매개 변수
- context
- Context
컨텍스트는 시간이 표시되는 경우에만 필요합니다.
- millis
- Int64
지정 시간(UTC 밀리초)
- flags
- FormatStyleFlags
서식 옵션의 비트 마스크
반품
형식이 지정된 날짜/시간을 포함하는 문자열입니다.
- 특성
설명
로컬 규칙에 따라 날짜 또는 시간의 형식을 지정합니다. 예를 들어 시간이 표시되는 경우, 요일이 표시되는 경우, 월 이름이 약어인 경우, 정오가 오후 12시 대신 표시되는 경우 등과 같이 호출자가 제어할 수 있는 많은 옵션이 있습니다. 옵션의 전체 목록은 에 대한 #formatDateRange설명서를 참조하세요.
예제 출력 문자열(이러한 예제의 날짜 형식은 미국 날짜 형식 규칙을 사용하여 표시되지만 로컬 설정에 따라 변경 될 수 있음): ul>li 10:15am</li<>li>3:00pm</li li>><3pm/li<>li>3PM<</li<>li>08:00/li><li>17:00<</li><>noon</li>><Noon</li midnight/li>><midnight</li><><<>미드나잇</리 리>><10월 31<일/리><리>10월 31일, 2007</li<>li>2007<년 10월 31일/li><li>10am, 10월 31</li<>li>17:00, 10월 31</li<>li>wed</li<>wednesday</li li>wednesday/li><li>10am, Wed, Oct 31</li<>li>Wed, Oct 31</li><li>wednesday, Oct 31</li><>Wed, Oct 31, 2007</li><li>Wed, October 31</li><li>10/31/2007</li></ul>
에 대한 android.text.format.DateUtils.formatDateTime(android.content.Context, long, int)Java 설명서
이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.