パッケージ、リポジトリ、アプリカテゴリを検索

GitHub リポジトリMattiaPispisa/posix_tz

posix_tz

Posix タイムゾーンの Dart パッケージ。このライブラリは、標準的な Posix 形式のタイムゾーンを提供します。データは /usr/share/zoneinfo の内容を読み取ることで取得されます。

posix_tz のプロジェクト画像
スター
1
フォーク
0
最終プッシュ(UTC)
2024/04/21
プロジェクト状態
公開中

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

Posix Tz

This library provides timezones in the standard Posix format. The data is obtained by reading the content of /usr/share/zoneinfo.

Initialization

It's important to initialize the library before reading the timezones.

void main() {
    await initializePosixTz();
}

Usage

// after initialization
final posixTz = db.get("Europe/Rome");
print(posixTz.toString()) // name:Europe/Rome, posix:CET-1CEST,M3.5.0,M10.5.0/3

Other

PosixTz can be compared.

final posixTz1 = posixTzDb.get('Europe/Rome');
final posixTz2 = posixTzDb.get('Europe/Rome');
final posixTz3 = posixTzDb.get('Atlantic/Stanley');
print(posixTz1 == posixTz2); // true
print(posixTz1 == posixTz3); // false

posixTzDb can be expanded.

posixTzDb.add(PosixTz(name: "Ababwa",posix: "<+06>-6"));
Mattia GitHub avatar
GitHub 作者

Mattia ↗

I have always been passionate about mobile development. I started with iOS and then transitioned to a hybrid approach.

MVLabsUdine, Italy公式サイト ↗
言語Dart

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 2 件

プロジェクトに合うリポジトリを選ぶには?

用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。

  1. 名前・作者・説明で検索し、技術トピックで絞り込みます。
  2. スター、フォーク、最近のプッシュを比較します。スターは関心の目安であり、品質の保証ではありません。
  3. 利用前に GitHub で README、ライセンス、Issues を確認します。

情報源と管理

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗