CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
modifying timestamp

 



melz
Novice

Jun 15, 2001, 11:27 PM

Post #1 of 2 (299 views)
modifying timestamp Can't Post

I'm currently working on a personal weblog script, and when I create a new entry, the day and time recorded is that of my server's (which is in a totally different timezone from mine).
So, I was wondering if there's a simple way for me to set it to my own timezone or whatever? Thanks :D



rGeoffrey
User / Moderator

Jun 17, 2001, 6:44 PM

Post #2 of 2 (285 views)
Re: modifying timestamp [In reply to] Can't Post

If your server is in PDT and you are in EDT three hours forward, you could do something like this...


Code
$timestamp = &some_function_here (time + (60 * 60 * 3));

--
Sun Sep 9, 2001 - 1:46:40 GMT, a very special second in the epoch. How will you celebrate?

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives