2025-12-12 04:09 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

201 views
Skip to first unread message

Przemyslaw Czerpak

unread,
Dec 11, 2025, 10:09:28 PM12/11/25
to harbou...@googlegroups.com
2025-12-12 04:09 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/harbour.hbx
* src/harbour.def
* src/rtl/dateshb.c
+ added new PRG function which converts UTC time to local time:
hb_UTCToTS( <tUTCTime> [, @<lUTCOffset> ) -> <tLocalTime>

* include/hbdate.h
* src/harbour.def
* src/common/hbdate.c
+ added new C function which converts UTC time to local time:
double hb_timeUTCToLocal( double dTimeStamp, int * piUTCOffset );

best regards
Przemek

Eric Lendvai

unread,
Jan 14, 2026, 9:18:28 PMJan 14
to Harbour Developers
Hello  Przemek ,

I think instead of hb_UTCToTS( <tUTCTime> [, @<lUTCOffset> ) -> <tLocalTime>
It should be: hb_UTCToTS( <tUTCTime> [, @<nUTCOffset> ) -> <tLocalTime>
The offset is not a logical but a number of seconds.

Thanks, Eric
Reply all
Reply to author
Forward
0 new messages