0

How to Print the Current Time in Human Readable Format in Java?

Posted by Joys of Programming on in Java

currentTimeMillis and nanoTime give the current System time in milliseconds and nano seconds. But this is not understood by humans, since the value returned by these functions is the amount of time passed since January 1,1970 To be able to display the time in human readable format, we make use of the java.util.Calendar. Calendar.getInstance() gives [...]

Tags: , ,

 
0

How to find the Greenwich Mean time in Perl?

Posted by Joys of Programming on in Perl

Using localtime, you can find the local time. But to find the greenwich mean time also known as GMT, you must make use of the function gmt.

Tags: , , ,

 
0

How to calculate the year of day in Perl

Posted by Joys of Programming on in Perl

Day of the year is the number of days passed since January 1st of this year. localtime gives a lot of information like hours, minutes, seconds, month, day and year. It also returns day of the year

Tags: , , ,

Copyright © 2009-2012 Joys of Programming All rights reserved.
Desk Mess Mirrored v1.8.1 theme from BuyNowShop.com.