Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Computing Oracle date format from a date string

by DamnDirtyApe (Curate)
on Aug 23, 2002 at 19:49 UTC ( #192426=note: print w/replies, xml ) Need Help??


in reply to Computing Oracle date format from a date string

Date::Manip can read dates in many, many formats. This may be what you're after.


_______________
DamnDirtyApe
Those who know that they are profound strive for clarity. Those who
would like to seem profound to the crowd strive for obscurity.
            --Friedrich Nietzsche
  • Comment on Re: Computing Oracle date format from a date string

Replies are listed 'Best First'.
Re: Re: Computing Oracle date format from a date string
by Rhose (Priest) on Aug 23, 2002 at 19:56 UTC
    Yep, I threw together a quick script which might give you a starting point -- it should dump the dates out in 'YYYY-MM-DD HH24:MI:SS' format.

    #!/usr/bin/perl -w use strict; $ENV{TZ} = 'EST5EDT'; use Date::Manip; my $gDate; while(<DATA>) { $gDate = ParseDate($_); print UnixDate($gDate,'%Y-%m-%d %H:%M:%S'),"\n"; } __DATA__ 2002-08-23 11:39:24.0 Fri Aug 23 12:14:04 2002

    Update: Your timezone may be different. *Smiles*

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://192426]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2019-05-25 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (152 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!