* UPDATE: Unix Time
@ 2003-05-26 14:40 MARCELO ALONSO MONDRAGON
0 siblings, 0 replies; only message in thread
From: MARCELO ALONSO MONDRAGON @ 2003-05-26 14:40 UTC (permalink / raw)
Thank you for their answers, but How could I make the inverse process?,
convert whatever date in human format to unix format.
In order to get the date in unix format, their answers were:
From: William H. Magill <magill@mcgillsociety.org>
#!/usr/bin/perl
#
print scalar(localtime($ARGV[0]));
print "\n";
From: Michael James Bradford <mjbr@tdc.dk>
#!/bin/perl
$now=localtime(<stdin>);
print $now,"\n"
If you call the script convert_time.pl, then you run it as follows:
$ echo "1049972098"|convert_time.pl
Thu Apr 10 12:54:58 2003
From: Martin Adolfsson <mad@netilium.org>
perl -e 'print time()."\n"'
And other answers more
Marcelo Alonso Mondragón
Soporte Técnico / Informática / SICARTSA
Una Empresa del Grupo Villacero
E-Mail: malonsom@villacero.com.mx
Internet: http://www.villacero.com.mx
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-05-26 14:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-26 14:40 UPDATE: Unix Time MARCELO ALONSO MONDRAGON
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox