That was actually my first attempt, but it doesn't work.
$time1 = Date_to_Time(2007,1,1,23,00,0);
$time2 = Date_to_Time(2007,1,1,03,00,0);
$time3 = Date_to_Time(2007,1,1,01,00,0);
1167692400 1167620400 1167613200
1167642000
09:00:00
Actually came up with a way to do this, but, would love to hear other/better suggestions.
All of my jobs start at 5pm. So, what I can do is check and see if the start time of a particular job is < 5pm. If so, I know it started the next day, then I would do this:
$time = Date_to_Time(2007,1,
2,02,00,0);
If it is after 5pm, then it's the same day so:
$time = Date_to_Time(2007,1,
1,23,00,0);
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.