What exactly do you mean by a "Perl date"? There's no such
thing as a "date" type in Perl. You might mean "seconds since
epoch", but even that is not a portable concept, as Perl will
use your OSses idea of an epoch. The epoch on a Unix system
will be 1-Jan-1970 00:00:00, but on VMS, it's 17-Nov-1858 00:00:00.
Also note that if you mean "seconds since 1970", there's no trivial
1-to-1 function to database specific dates, as they usually
have a much wider range and/or higher granuality.
Luckely, many databases will accept dates in wide range of
formats. If you stick to an ISO standard for instance, you
should have many problems.
Abigail
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.