FLUTTER ECOSYSTEM

tejainece/date_format

날짜 형식 지정

날짜 형식 프로젝트 이미지
Stars
87
Forks
75
최근 푸시(UTC)
2025. 1. 16.
프로젝트 상태
활성
Ravi Teja Gudapati GitHub avatar
GITHUB User

Ravi Teja Gudapati ↗

Programming. Innovation. Football. Exercising.

언어Dart

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 1 개
  • test개발 의존성^1.3.0

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

date_format

A simple API to format dates.

Usage

Use formatDate function to format a DateTime object.

print(formatDate(DateTime(1989, 02, 21), [yyyy, '-', mm, '-', dd]));

Output:

1989-02-21

Long month names
print(formatDate(DateTime(1989, 2, 21), [yy, '-', M, '-', d]));

Output:

89-feb-21

Time parts
print(formatDate(
      DateTime(1989, 02, 1, 15, 40, 10), [HH, ':', nn, ':', ss]));

Output:

15:40:10

Timezone
print(formatDate(
      DateTime(1989, 02, 1, 15, 40, 10), [HH, ':', nn, ':', ss, z]));

Output:

15:40:10+0100