shankar alagiri

Greenhorn
+ Follow
since Dec 01, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by shankar alagiri

Hi,

Thanks All,

long timeInMillis = 1995181298L*1000L;


I tried using the above expression and there is no change in the output.

I'm coding a Network managemant Application which needs to calculate the date & time of an event occured in the Network Element.

The network time in seconds represents when that event occured in the network element.

Thanks.
Shankar.A
17 years ago
Hi Brunborg,

Thank You for your response,

long timeInMillis = 1995181298*1000;
Calendar myCalendar = Calendar.getInstance();
myCalendar.setTimeInMillis(timeInMillis);
Date theDate = myCalendar.getTime();

This is the exact piece of code i'm using to get the data & time for a given time in seconds.

The following are input data and corresponding output i'm getting,

3159720303 Sat Feb 15 13:03:03 GMT-07:00 2070

3159720205 Sat Feb 15 13:03:25 GMT-07:00 2070

It seems to me the output is not right.

Please help

thanks,
Shankar.A
17 years ago
Hello,

I want to find the date and time using java.util.calendar api.
The parameter that is know to me is Time in seconds.

thanks,
Shankar.A
17 years ago
Hi,

My question is how to find the exact Date & Time using java.util.Calendar object from elapsed time in seconds?


Thanks,
Shankar.A
17 years ago