pet has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBD-InterBase: different date/time formats
by pgor (Beadle) on Jun 22, 2004 at 17:18 UTC | |
|
Re: DBD-InterBase: different date/time formats
by paulbort (Hermit) on Jun 22, 2004 at 17:18 UTC | |
by pet (Novice) on Jun 23, 2004 at 08:15 UTC | |
|
Re: DBD-InterBase: different date/time formats
by digger (Friar) on Jun 22, 2004 at 17:23 UTC | |
|
Re: DBD-InterBase: different date/time formats
by pet (Novice) on Jun 23, 2004 at 08:09 UTC |