I have the following problem, and I've put *a little* thought and search into the solution but nothing is smacking me in the face just yet:
I maintain an automated test tool that validates a web app sitting on a MSSQL db. We have added a set of 'audit' tables to our MSSQL database, and these tables all have 'DateTime' columns, which give dates in the format:
2010-07-23 19:44:43.523
I need to compare that date with Perl's localtime(time) value, and decide if this stamp is within ~1 minute of the value stored in the database.
FYI:
on my system (windows7), localtime(time) returns the following format:
perl -e "print localtime(time).$/"
Fri Jul 23 14:57:39 2010
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.