7
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

誕生日が2月22日なので2022年2月22日2時22分22秒にログ出力してみた

Last updated at Posted at 2022-02-21

2月22日が誕生日の僕にとって2022年2月22日 2時22分22秒はなんとなく特別に思える。
せっかくなんでログ出力して記念にとっておく。
image.png
エンジニアなのでコードも載せておく。

.swift
import UIKit

let date = Date(timeIntervalSince1970: 1645464142)
let formatter = DateFormatter()

formatter.timeZone = TimeZone(identifier:  "Asia/Tokyo")
formatter.dateFormat = "yyyy年M月d日 H時m分s秒"
let stringDate = formatter.string(from: date)

print(stringDate)

2時22分22秒まで待とうかと思ったけど眠いのでEpochTimeで出力(笑)

次にこれだけ2が揃うのは100年後の2月22日か〜
200年後の2月22日はプレミアですね。

ちなみに僕の誕生日のEpochTimeはこれ。

824923342

なんとなくエモい感じになった誕生日でした。
26歳も頑張るぞ!

7
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?