MTarkington
Programmer
I am having a problem trying to figure out how the localtime function works. I have researched the forum, and some other resources, but I don't understand how to format the date when inserting it into a variable.
Here's what I'm trying to do: When a record is created via the Perl program, I am inserting the data into an Oracle database. This is where I want to insert a date/time stamp. I want it to be in the format 'YYYYMMDDHH24MISS', for the ease of inserting it into Oracle.
Now, what is the syntax to actually make the localtime function give me the above format for today's date? I have tried everything I can think of, but using Perl, my knowledge is limited.
Any help would be appreciated.
Thanks in advance,
Mark
Here's what I'm trying to do: When a record is created via the Perl program, I am inserting the data into an Oracle database. This is where I want to insert a date/time stamp. I want it to be in the format 'YYYYMMDDHH24MISS', for the ease of inserting it into Oracle.
Now, what is the syntax to actually make the localtime function give me the above format for today's date? I have tried everything I can think of, but using Perl, my knowledge is limited.
Any help would be appreciated.
Thanks in advance,
Mark