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#

RSS 2.0 | Trackback | Comment

Leave a Reply

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