about timestamp reformat
From: janet (esthershensh_at_yahoo.com)
Date: 03/22/04
- Next message: Gunnar Hjalmarsson: "Re: about timestamp reformat"
- Previous message: nobull_at_mail.com: "Re: Counters in variable names."
- Next in thread: Gunnar Hjalmarsson: "Re: about timestamp reformat"
- Reply: Gunnar Hjalmarsson: "Re: about timestamp reformat"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 22 Mar 2004 10:36:52 -0800
HI,
I'm new in perl..
I'm not sure if that is easy to use Perl to change the timestamp
format in the text file..
I got the txt file from sybase database, because the format is
different , I need to change it suitable to out DB2 database..
I heard that Perl is good at text processing... But I'm not very
familiar with it...
For example I want to change the format from following
a|b|c|Jul 14 2000 4:56:00:000PM|d|e|f|Jul 14 2000
4:56:00:000PM|h|I|j
to
a|b|c|2000-07-14-16:56:00:000000|d|e|f|2000-07-14-16:56:00:000000|h|I|j
"|" is the seperator in the text, and the timestamp could be different
values and could happen at any place..
Is there any way to process the file easily?
Your help is very appreciated..
- Next message: Gunnar Hjalmarsson: "Re: about timestamp reformat"
- Previous message: nobull_at_mail.com: "Re: Counters in variable names."
- Next in thread: Gunnar Hjalmarsson: "Re: about timestamp reformat"
- Reply: Gunnar Hjalmarsson: "Re: about timestamp reformat"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|