Hello,

I have a problem when fetching, especially when displaying date/time format received by DBD-InterBase driver in PERL. I have a few Perl scripts that generate different HTML documents - from a XML file and some InterBase data. Everything worked fine on Windows (with DBD-InterBase-0.40), I was getting (by query:
SELECT TIME, VALUE, ID FROM TABLE1 WHERE (TIME > '1.5.2004 0:0:0' AND TIME < '20.5.2004 23:59:59'))
and displaying date/time format in my HTML pages like:
"15.5.2004 12:00:30" for fifteenth of May, year 2004 12:00PM (and 30 seconds).

But when I installed DBD-InterBase driver (version -0.40, -0.42 and -0.43) on Unix (Linux SuSe ver2.4.21) the date/time format I was getting & displaying was:
"Tue May 15, 12:00:30 2004" instead of "15.5.2004 12:00:30" (like on Windows).

After that, I replaced the DBD-InterBase driver on both the Windows and Unix, and now I have DBD-InterBase-0.43 on both systems! But, still I'm getting date/time format like:
- on Linux: "Tue May 15, 12:00:30 2004", and
- on Windows: "05/15/04 12:00:30" (previously it was "15.5.2004 12:00:30")!
I noticed (it was obvious) that date/time format is dependable of the DBD-InterBase driver, but still I cannot get my desired format, neither on Windows nor on Linux! (desired format should be like: "15.5.2004 12:00:30"). So, what should I do, or change to receive and display "my desired format" of date/time?

Anyone, any ideas, hints, suggestions on this?

I appreciate any help. Thanks.


In reply to DBD-InterBase: different date/time formats by pet

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.