swami has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use POSIX; my $ts1 = "$ARGV[0]"; my $ts2 = "$ARGV[1]"; $diff = ($ts1 - $ts2); print int($diff);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Timestamp difference calculation
by kcott (Archbishop) on Oct 07, 2012 at 20:33 UTC | |
|
Re: Timestamp difference calculation
by choroba (Cardinal) on Oct 07, 2012 at 20:20 UTC | |
|
Re: Timestamp difference calculation
by 2teez (Vicar) on Oct 07, 2012 at 20:22 UTC |