add a TimeZone::PrintOffset(...) method
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2012-2014, Tomasz Sowa
|
||||
* Copyright (c) 2012-2023, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -115,7 +115,7 @@ public:
|
||||
time_t CalcLocalOffset(const pt::Date & utc_date);
|
||||
time_t ToLocal(time_t utc_time);
|
||||
pt::Date ToLocal(const pt::Date & utc_date);
|
||||
|
||||
static void PrintOffset(time_t offset, pt::Stream & str); // prints the offset as [+|-]HH:MM:SS e.g.: +02:00:00
|
||||
|
||||
/*
|
||||
converting from local time to UTC
|
||||
@@ -157,6 +157,7 @@ private:
|
||||
time_t ParseStrOffset(const wchar_t * str);
|
||||
time_t GetOffset(pt::Space & space);
|
||||
bool SetTzDst(pt::Space & year);
|
||||
static void PrintOffsetPart(long val, pt::Stream & str);
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user