mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-24 06:04:15 +01:00
trunk/branch integration: documentation
This commit is contained in:
@@ -52,12 +52,16 @@ class Foundation_API DateTime
|
||||
/// This class represents an instant in time, expressed
|
||||
/// in years, months, days, hours, minutes, seconds
|
||||
/// and milliseconds based on the Gregorian calendar.
|
||||
/// The class is mainly useful for conversions between
|
||||
/// UTC, Julian day and Gregorian calendar dates.
|
||||
///
|
||||
/// Conversion calculations are based on algorithms
|
||||
/// collected and described by Peter Baum at
|
||||
/// http://vsg.cape.com/~pbaum/date/date0.htm
|
||||
/// The class is mainly useful for conversions between
|
||||
/// UTC, Julian day and Gregorian calendar dates.
|
||||
///
|
||||
/// The date and time stored in a DateTime is always in UTC
|
||||
/// (Coordinated Universal Time) and thus independent of the
|
||||
/// timezone in effect on the system.
|
||||
///
|
||||
/// Conversion calculations are based on algorithms
|
||||
/// collected and described by Peter Baum at
|
||||
/// http://vsg.cape.com/~pbaum/date/date0.htm
|
||||
///
|
||||
/// Internally, this class stores a date/time in two
|
||||
/// forms (UTC and broken down) for performance reasons. Only use
|
||||
@@ -429,11 +433,11 @@ inline void swap(DateTime& d1, DateTime& d2)
|
||||
|
||||
inline void DateTime::checkLimit(short& lower, short& higher, short limit)
|
||||
{
|
||||
if (lower >= limit)
|
||||
{
|
||||
higher += short(lower / limit);
|
||||
lower = short(lower % limit);
|
||||
}
|
||||
if (lower >= limit)
|
||||
{
|
||||
higher += short(lower / limit);
|
||||
lower = short(lower % limit);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user