>>>>> On Tue, 06 Apr 2010 07:38:14 -0500, Dick Kriss <[email protected]> said:

>> From: Ed <[email protected]>
>> To: [email protected]
>> Cc: [email protected]
>> Subject: Re: GMT on Linux
>> Message-ID: <[email protected]>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>> 
>> Pino Zollo wrote:
>>> Please,
>>> how does fldigi to set the GMT time in the log ?
>>> 
>>> Actually it i doing wrong in my set-up....
>>> I have the time zone set on America/Asuncion ...at present we are at GMT -3
>>> so 
>>> the local 17:43 is 20:43 GMT but fldigi sets 21:43...
>>> 
>>> I do not find any way of changing it.
>>> 
>>> Best 73
>>> Pino ZP4KFX
>> 
>> The time in fldigi is determined by your computer time. You may want to
>> see what the bios clock is set to, but I don't think that really matters.
>> 
>> There is not a way via fldigi to set the time. So you need to look to
>> your OS settings.
>> 
>> Ed W3NR
>> 

> Interesting there is no UTC offset for users to set in fldigi.  How
> does fldigi determine the correct offset based on local computer
> time?  Sounds really hard to program with no user preferences.

> I assumed (probably wrong?) that fldigi used the QTH or the
> Locator in the Operator configuration panel to know how to display
> the correct UTC. 

Fldigi does not use the QTH or locator to get the local time.  It gets
the "wall clock" time from the system and formats it according to the
current locale (<ZDT>, <LDT> macros) or iso-8601 (<IZDT>, <ILDT>
macros).  The L macros return local time, the Z macros return GMT (zulu)
time.

You can also use the <EXEC> macro to run date(1), a utility that is
available on all Unix systems and can generate time/date strings in just
about any format you want. See this manual page for OS X:

  
http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/date.1.html


Also, try these in a test macro:

<LDT>
<ZDT>
<ILDT>
<IZDT>
<EXEC>date</EXEC>

Here is the output on my Debian system:

04/06/10 14:18 BST
04/06/10 13:18Z
2010-04-06 14:18+0100
2010-04-06 13:18Z
Tue Apr  6 14:18:07 BST 2010

As you can see my current timezone is BST (GMT+1). The dates are printed
in US format (mm/dd/yy) because I use the POSIX (C) locale, but if I set
the LC_TIME environment variable to en_GB, I can get this instead:

06/04/10 14:18 BST
06/04/10 13:18Z
2010-04-06 14:18+0100
2010-04-06 13:18Z
Tue Apr  6 14:18:07 BST 2010


-- 

73,
Stelios, M0GLD.
_______________________________________________
fldigi-alpha mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/fldigi-alpha

Reply via email to