v2.0.9
date_format
날짜를 형식화하는 간단한 API입니다. 다양한 상수를 제공하여 날짜 형식 문자열을 만들 수 있습니다. 형식 문자열에 따라 날짜를 포맷하기 위해 `formatDate` 메서드를 사용하십시오.
449좋아요 22.9만30일 다운로드150Pub 점수
AndroidiOSWebmacOSWindowsLinux
날짜 형식 지정
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A simple API to format dates.
Use formatDate function to format a DateTime object.
print(formatDate(DateTime(1989, 02, 21), [yyyy, '-', mm, '-', dd]));
Output:
1989-02-21
print(formatDate(DateTime(1989, 2, 21), [yy, '-', M, '-', d]));
Output:
89-feb-21
print(formatDate(
DateTime(1989, 02, 1, 15, 40, 10), [HH, ':', nn, ':', ss]));
Output:
15:40:10
print(formatDate(
DateTime(1989, 02, 1, 15, 40, 10), [HH, ':', nn, ':', ss, z]));
Output:
15:40:10+0100
의존성 목록 1 개
^1.3.0사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗