Skip to content

Instantly share code, notes, and snippets.

@yukidarake
Last active December 14, 2015 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yukidarake/5080196 to your computer and use it in GitHub Desktop.
Save yukidarake/5080196 to your computer and use it in GitHub Desktop.
Perl5.10以上ならTime::Pieceが標準添付モジュールとなっている。ミリ秒のUNIXタイムをJSTにする。
perl -MTime::Piece -lane 'print localtime(gmtime($F[0]/1000)->epoch)."\t$F[1]"' hoge.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment