すぎゃーんメモ

2009-04-22

年齢確認ワンライナー

Perl OneLiner
perl -MDateTime -le 'print+(DateTime->now - DateTime->new(day,pop,month,pop,year,pop))->years' <year> <month> <day>
$ perl -MDateTime -le 'print+(DateTime->now - DateTime->new(day,pop,month,pop,year,pop))->years' 1982 12 10
26

私は現在26歳です

sugyan 2009-04-22 11:37

年齢確認ワンライナー
Bookmark this entry on Hatena::Bookmark
Tweet
  • Read more
Write a comment
« MacのEclipseで自動生成されるJavadocのau… ワンライナーでモジュールの色んな情報を… »
Profile
id:sugyan id:sugyan Hatena Blog Pro

技術メモ とか

Subscribed unsubscribe Subscribe Subscribe
Search
Links
  • Twitter @sugyan
  • GitHub @sugyan
Recent Entries
  • Advent of Code 2020 完答した
  • 顔画像生成のためのデータセットを厳選する
  • ISUCON10 予選敗退した
  • StyleGAN2学習済みモデルを使って任意の画像を生成させる
  • StyleGAN2学習済みモデルを使ったmorphing、latent spaceの探求
Archive

Start using Hatena Blog!

sugyan is using Hatena Blog. Would you like to try it too?

Start using Hatena Blog (Free)
What is Hatena Blog?
すぎゃーんメモ すぎゃーんメモ

Powered by Hatena Blog | ブログを報告する

Star added

Quote saved.

Login to quote this blog

Failed to save quote. Please try again later.

You cannot quote because this article is private.

Subscribed unsubscribe Subscribe Subscribe