in reply to question about unix timestamps (epoch)
#!/usr/bin/perl -w my $_timestamp1 = '1189669351'; my $_timestamp2 = '1189395751'; my $_timebetween = $_timestamp1 - $_timestamp2; print int($_timebetween/(60*60*24));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: question about unix timestamps (epoch)
by ikegami (Patriarch) on Sep 13, 2007 at 13:34 UTC | |
by johnlawrence (Monk) on Sep 13, 2007 at 14:25 UTC |