What is the difference between localtime() and gmtime() functions?



What is the difference between localtime() and gmtime() functions?..

Answer / Manuj Kumar

localtime(): It returns the current local time, which is adjusted for daylight saving time (if applicable). gmtime(): It returns the current Greenwich Mean Time (GMT) or Coordinated Universal Time (UTC), which does not adjust for daylight saving time.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

You want to connect to sql server through perl. How would you do that?

1 Answers  


What do the symbols $ @ and % mean when prefixing a variable?

1 Answers   Barclays,


Explain ivalue?

1 Answers  


How can memory be managed in Perl?

1 Answers  


What does `$result = f() .. g()' really return?

1 Answers  


In CPAN module, name an instance you use.

1 Answers  


What does redo statement do in perl?

1 Answers  


What exactly is grooving and shortening of the array?

1 Answers  


Explain the default scope of variables in perl?

1 Answers  


Which feature of perl provides code reusability?

1 Answers  


Write syntax to add two arrays together in perl?

1 Answers  


How the interpreter is used in Perl?

1 Answers  


Categories