-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2025-01-23 17:45 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/hbdate.h * src/common/hbdate.c * src/harbour.def + added new C functions: HB_BOOL hb_timeStrGetUTC( const char * szTime, int * piHour, int * piMinutes, int * piSeconds, int * piMSec, int * piUTCOffset ); HB_BOOL hb_timeStampStrGetUTC( const char * szDateTime, int * piYear, int * piMonth, int * piDay, int * piHour, int * piMinutes, int * piSeconds, int * piMSec, int * piUTCOffset ); They can decode timestamp value with ISO 8601 UTC offset. * src/common/hbdate.c * use hb_timeStampStrGetUTC() in hb_timeStampStrGetDT() and return UTC time if it was with UTC offset Now Harbour compiler accept timestamp strings with with UTC offset, i.e. ? t"2025-01-22 00:45 UTC+0100" // => 2025-01-21 23:45:00.000 Also HB_StrToTS() supports it. * src/pp/hbpp.c * use new hb_timeStampStrGetDT() to decode timestamp from ChangeLog to build revision number. It also fixes bug with decoding negative UTC offsets.
- Loading branch information
Showing
5 changed files
with
137 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters