
Signature
Knute Johnson
email s/nospam/knute/
>>>> I have the following in my code:
>>>>
[quoted text clipped - 39 lines]
> uses /etc/sysconfig/clock. I don't have any Ubuntu running here but I
> will load the live CD after I post this and see what I can find.
Do you know if there's any side effects with other Linux programs, or do
they recognize the underscore and space as the same in time zones?
If it's just on my system, that's no problem. I'm testing it on my
computer. Most people running this will be on Windows. A few will be on
Linux, but they're smart enough they can work with me on this.
Thanks for the info -- I was wondering if I was doing something wrong!
Hal
Knute Johnson - 08 Aug 2007 06:49 GMT
>>>>> I have the following in my code:
>>>>>
[quoted text clipped - 41 lines]
> Do you know if there's any side effects with other Linux programs, or do
> they recognize the underscore and space as the same in time zones?
As far as I know it does not affect any other programs (he says).
> If it's just on my system, that's no problem. I'm testing it on my
> computer. Most people running this will be on Windows. A few will be on
> Linux, but they're smart enough they can work with me on this.
Windows shouldn't be a problem.
> Thanks for the info -- I was wondering if I was doing something wrong!
>
> Hal
I just loaded up my Ubuntu CD and ran it live and I don't find a
/etc/sysconfig/clock. In fact there is no sysconfig directory. I'm not
sure where Ubuntu keeps the timezone. You might look around for that.
On Fedora it is in the clock file. I would be curious to know if you
find out where it is kept.
The bug number is 6456628. Somebody posted the note here a couple of
months ago about the space versus under_score. You might vote for this
bug if you have any to spare.
What time zone are you in Hal?

Signature
Knute Johnson
email s/nospam/knute/
Ingo Menger - 08 Aug 2007 14:41 GMT
> >>>> I have the following in my code:
>
[quoted text clipped - 42 lines]
> Do you know if there's any side effects with other Linux programs, or do
> they recognize the underscore and space as the same in time zones?
You can most easily test this by running
date
perl -e '$x= localtime(time); print "$x";'
etc.
On some *Xs, there is a environment variable TZ, that works like this
(all commands typed within a few minutes):
$ echo $TZ
MET
$ date
Wed Aug 8 15:32:35 MEST 2007
$ TZ=XXX date
Wed Aug 8 13:32:46 GMT 2007
$ TZ=UTC+5 date
Wed Aug 8 08:33:05 UTC 2007
$ TZ=UTC-5 date
Wed Aug 8 18:33:13 UTC 2007
$ TZ=EST date
Wed Aug 8 08:33:28 EST 2007
$ TZ=EST+1 date
Wed Aug 8 12:34:00 EST 2007
$ TZ=XXX+1 date
Wed Aug 8 12:34:34 XXX 2007
On that system, TZ is honored and there is a set of known timezones
(i.e. MET where it also knows the associated daylight savings timezone
name or EST (that is the same as 5 hours west UTC) and you can also
enter a custom timezone where the time zone name is not honored, thus
EST+1 is the same as XXX+1 and is interpreted as UTC+1)
> If it's just on my system, that's no problem. I'm testing it on my
> computer. Most people running this will be on Windows. A few will be on
> Linux, but they're smart enough they can work with me on this.
As long as the programs I listed above print the same time as your
program does, then it is okay. Otherwise, it's a problem with java or
your program.