Tips Hora UNIX a Human Readable

Por ejemplo tenemos el timestamp 1213184114.859 y queremos pararlo a una fecha “entendible” entre comillas, ya que hay gente que puede leer en hora UNIX jaja y en binario, bue simple solucion en Perl :)

-bash-3.1# echo 1213184114.859 | perl -pw -e ‘s/^\d+\.\d+/localtime $&/e’
Wed Jun 11 08:35:14 2008
-bash-3.1#

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • BarraPunto
  • Bitacoras.com
  • Live
  • Ping.fm
  • StumbleUpon
  • Technorati
  • PDF
  • RSS

Posts relacionados

RSS 2.0 | Trackback | Comment
(Visitas para esta entrada 1282 times)

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>