Skip to content

Commit dc73e51

Browse files
committed
Doc. Update README
1 parent 1ebd6c0 commit dc73e51

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Unity向けの便利な何かしら達
99

1010
- `void SetTitle()`: Buttonのタイトルをセットするやつ(HierarchからButton作ったものを想定している)
1111

12+
### DateTimeExtension
13+
14+
- `long Timestamp()`: DateTimeをUNIXタイムスタンプに変換する
15+
1216
### GameObjectExtension
1317

1418
- `void AddComponentIfNeeded<T>()`: 指定されたComponentがなければ追加するやつ
@@ -35,4 +39,15 @@ Unity向けの便利な何かしら達
3539

3640
### TransformExtension
3741

38-
- `void ChangeLayersRecursively(string)`: 再帰的に指定されたレイヤーに変えるやつ
42+
- `void ChangeLayersRecursively(string)`: 再帰的に指定されたレイヤーに変えるやつ
43+
44+
## Network
45+
46+
### NTP
47+
48+
公開されているNTPサービスをつかって正しい現在時刻を取得するやつ
49+
CREDIT: [NICT様](http://jjy.nict.go.jp/ntp/)
50+
51+
- `void GetTimestamp(System.Action<long?>)`: UNIXタイムスタンプを取得
52+
- `void GetTimestamp(System.Action<DateTime?>)`: UNIXタイムスタンプをDateTimeに変換して取得
53+
DateTimeはLocalDateTimeに変換

0 commit comments

Comments
 (0)