[Lazarus] OT: Cute little toy program

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Fri Sep 14 19:22:51 CEST 2012

Terry Haimann wrote:
> Wrote a toy app that calculates time/date on Mars.  Note as written it 
> won't work under Windows.  I didn't see a way to write a generic routine 
> to get the Time- Zone.  I ended up running an external process using the 
> Linux Date Program.
> www.HaimannOnline.com/Astronomy/MartianTime.zip

Is that the time zone on Earth or on Mars? :-) There was discussion 
recently on getting uncorrected UTC time which concluded that it was 
much easier on unix than on Windows, in practice I usually delegate as 
much as possible to a backend database.

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the Lazarus mailing list