Help - Search - Members - Calendar
Full Version: change date command timezone?
MandrivaUsers.org > Advanced Topics > Command Line, Kernel and Programming
redss
I have a perl script on a web server in a different time zone. Is there a way that I can make the date command output the date in my timezone rather than the time zone of the server?
spinynorman
Like this?
CODE
[steve@localhost steve]$ date +%c
Tue 27 Apr 2004 00:04:01 BST
redss
Thats it, should mention that the TZ environment variable needs to be set first. thanks!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.