This is a question about time. (not localtime(), though)
How can I get the current time in a certain place?
Say I wanted to get the current date of the month from Greenwich Mean Time - 7 hours?
This is such a dumb kind of question, but I need it for my site!
What I need it do do is every time the first section of my LONG script is run, it checks the date stored in a file.
If the date in the file does not match the current date, a certain file is deleted from my site. Then the current date is stored in that date file.
What this gives me is that every day, that one file is deleted.
BUT my problem now is that when using localtime(), the date can be different for different users, depending where in the world they are located!
So now I want to get the time for a specific time zone, then it will be the "same" date for all users. Thanx.

Wheh, a lot of typing! :-D


In reply to Time Question by mt2k

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.