' Lehey; [EMAIL PROTECTED] ORG
Subject: Re: timezone command
On Fri, Apr 16, 2004 at 12:28:58AM -0400, JJB wrote:
I know how to set timezone, date and time.
I am looking for command to display on the console screen the
systems timezone in this kind of format -00:00
Is there such an command
On Fri, Apr 16, 2004 at 11:48:11AM -0400, JJB wrote:
Yes that is close enough for an starting point, thank you.
I need $timezone to hold the time zone in this format -00:00
The command date +%z will give it as -
I know nothing about writing perl scripts.
Can somebody show me how
On Fri, 2004-04-16 at 17:17, Matthew Seaman wrote:
You can do it very easily with perl:
#!/usr/bin/perl -w
use POSIX (strftime);
($d = strftime(%z, localtime)) =~ s/(\d\d)(\d\d)/$1:$2/;
print $d\n;
but it's probably a bit too heavyweight to use perl to format the
Time zone has been set during sysinstall.
Is there an console command to display my configured time zone like
format +05:00?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
On Thursday, 15 April 2004 at 22:15:06 -0400, JJB wrote:
Time zone has been set during sysinstall.
Is there an console command to display my configured time zone like
format +05:00?
Not quite like that (are you in Pakistan?). The problem is that time
zones aren't that simple: they contain
was looking for.
-Original Message-
From: Greg 'groggy' Lehey [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 11:58 PM
To: JJB
Cc: [EMAIL PROTECTED] ORG
Subject: Re: timezone command
On Thursday, 15 April 2004 at 22:15:06 -0400, JJB wrote:
Time zone has been set during sysinstall
On Fri, Apr 16, 2004 at 12:28:58AM -0400, JJB wrote:
I know how to set timezone, date and time.
I am looking for command to display on the console screen the
systems timezone in this kind of format -00:00
Is there such an command or some way to get this info?
In an perl script I tried