How to get PHP time() in PERL ?

  • Thread starter Thread starter Gordon S
  • Start date Start date
G

Gordon S

Guest
Hi, I already have a large PHP script - that uses a database (File saved on server *NOT* a MYSQL database.

- It uses the php time() value - EG 1236165241 - To see when data was saved.

I have a very timy Perl script- That does what I want - HOWEVER, I cannot make it find the right time() values - same as PHP. (I use 'localtime' - But that formats it into readable time -But i want the unix time...

Any advise- Thank you
 
There's a time() function in Perl that works the same way as the one in PHP. Returns the number of seconds since the epoch.
 
Back
Top