mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-26 00:40:05 +01:00
committed latest 1.3 snapshot
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// LocalDateTime.cpp
|
||||
//
|
||||
// $Id: //poco/Main/Foundation/src/LocalDateTime.cpp#11 $
|
||||
// $Id: //poco/Main/Foundation/src/LocalDateTime.cpp#12 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: DateTime
|
||||
@@ -96,6 +96,15 @@ LocalDateTime::LocalDateTime(int tzd, const DateTime& dateTime):
|
||||
}
|
||||
|
||||
|
||||
LocalDateTime::LocalDateTime(int tzd, const DateTime& dateTime, bool adjust):
|
||||
_dateTime(dateTime),
|
||||
_tzd(tzd)
|
||||
{
|
||||
if (adjust)
|
||||
_dateTime += Timespan(((Timestamp::TimeDiff) _tzd)*Timespan::SECONDS);
|
||||
}
|
||||
|
||||
|
||||
LocalDateTime::LocalDateTime(const LocalDateTime& dateTime):
|
||||
_dateTime(dateTime._dateTime),
|
||||
_tzd(dateTime._tzd)
|
||||
|
||||
Reference in New Issue
Block a user