The gmtime() method takes a Unix epoch time (seconds since Jan 1 1970) and 
returns a structure that tells you what the date, time of day, day of week and 
day of year were at that time in UTC.  The java.util.Date class would be a good 
place to start (although beware, it deals in *milliseconds*, not seconds).
 
If you're porting Perl to Java, you might want to familiarize yourself with 
"perldoc", for example:
    perldoc -f gmtime
 
Oh, and I'm sorry.
 
Philip

________________________________

From: R Shammi [mailto:[EMAIL PROTECTED]
Sent: Sat 7/22/2006 2:52 PM
To: datetime@perl.org
Subject: Local.pm



Hi

Is there any equalent of gmtime() method in java.

This is the background. I am working on a porting project, we have a legacy
product which uses perl extensivly. We are converting it to java.

Problem I am facing is, we are setting date filed using the perl method
gmtime() in Local.pm, Now I want to do the same thing in java but am unable
to figure out what this method is doing. I am not very good in perl.

Question: Is there any prebuilt java library which does the same thing as
gmtime(), or is it possible to explain what this method is doing, so I can
replicate the same in java.

thanks and regards
R Shamanth


  • Local.pm R Shammi
    • RE: Local.pm Garrett, Philip \(MAN-Corporate\)

Reply via email to