Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > To change the time stamp format...

Reply
Thread Tools

To change the time stamp format...

 
 
Brian McCauley
Guest
Posts: n/a
 
      04-03-2005


A. Sinan Unur wrote:

> "John W. Krahn" <(E-Mail Removed)> wrote in news:EEG3e.127836$ZO2.94802
> @edtnps84:
>
>>A. Sinan Unur wrote:
>>
>>>Ooops! How about that Y2.1K bug?!

>>
>>Is that thing still around?

>
> Yeah, it seems like a new version is released every century


Indeed, I always wondered why people insisted on calling the centuary
bug 'the millenium bug' or the 'Y2K bug'.

But it's really more often than that. There are all sort of ways that
various software encodes dates internally. Each of these can introduce
its own problems.

There was one on 9th September 2001. (10**9 seconds since 1970).

Of course there's the famous 'Unix' one on 19th January 2038 (2**31
seconds since 1970).

There's a lesser known one one a couple of years earlier (2**32 seconds
since 1900).

There's even one in 2010 that some users of systems written in the MUMPS
programing language may hit.

 
Reply With Quote
 
 
 
 
Doron Nissimi
Guest
Posts: n/a
 
      04-03-2005

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> Hi experts,
>
> I need a function in my perl program that converts the given time stamp
> to a specific time stamp format.
>
> example: 15-Aug-04.19:03 should be converted to 2004-08-15 19:03:00
>
> Can some one tell me how to do this?
>
> Thanks,
> John
>


Try Date::Manip
Simple, and powerful.


 
Reply With Quote
 
 
 
 
John W. Kennedy
Guest
Posts: n/a
 
      04-03-2005
Brian McCauley wrote:
>
>
> A. Sinan Unur wrote:
>
>> "John W. Krahn" <(E-Mail Removed)> wrote in
>> news:EEG3e.127836$ZO2.94802
>> @edtnps84:
>>
>>> A. Sinan Unur wrote:
>>>
>>>> Ooops! How about that Y2.1K bug?!
>>>
>>>
>>> Is that thing still around?

>>
>>
>> Yeah, it seems like a new version is released every century

>
>
> Indeed, I always wondered why people insisted on calling the centuary
> bug 'the millenium bug' or the 'Y2K bug'.
>
> But it's really more often than that. There are all sort of ways that
> various software encodes dates internally. Each of these can introduce
> its own problems.
>
> There was one on 9th September 2001. (10**9 seconds since 1970).
>
> Of course there's the famous 'Unix' one on 19th January 2038 (2**31
> seconds since 1970).
>
> There's a lesser known one one a couple of years earlier (2**32 seconds
> since 1900).
>
> There's even one in 2010 that some users of systems written in the MUMPS
> programing language may hit.


IBM mainframes started to have "keep forever" files deleted on August
16th, 1972, which was 9999 days before 2000-01-01.

(There was also a beta version of OS/VS1 that crashed every 24 hours at
exactly midnight, GMT, with a zero-divide error in the nucleus, because
one of the programmers who wrote the date/time code was aware that 1900
was not a leap year, and another one wasn't.)

--
John W. Kennedy
"The pathetic hope that the White House will turn a Caligula into a
Marcus Aurelius is as na´ve as the fear that ultimate power inevitably
corrupts."
-- James D. Barber (1930-2004)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date stamp and how to change on a doc.file vikingwoman61 General Computer Support 1 06-22-2009 02:08 AM
Saving time stamp for replied to email? Keith Firefox 4 01-17-2006 07:03 PM
Modifying a file's time stamp ladygrinningsoul Perl 1 12-06-2004 02:36 AM
Can Windows file time stamp be changed to shooting time? Gustav Digital Photography 8 07-31-2004 10:11 PM
Date/Time stamp in SQL =?Utf-8?B?QmVydA==?= ASP .Net 2 01-30-2004 04:47 PM



Advertisments