mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-25 06:36:37 +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
|
/// This class represents an instant in time, expressed
|
||||||
/// in years, months, days, hours, minutes, seconds
|
/// in years, months, days, hours, minutes, seconds
|
||||||
/// and milliseconds based on the Gregorian calendar.
|
/// and milliseconds based on the Gregorian calendar.
|
||||||
/// The class is mainly useful for conversions between
|
/// The class is mainly useful for conversions between
|
||||||
/// UTC, Julian day and Gregorian calendar dates.
|
/// UTC, Julian day and Gregorian calendar dates.
|
||||||
///
|
///
|
||||||
/// Conversion calculations are based on algorithms
|
/// The date and time stored in a DateTime is always in UTC
|
||||||
/// collected and described by Peter Baum at
|
/// (Coordinated Universal Time) and thus independent of the
|
||||||
/// http://vsg.cape.com/~pbaum/date/date0.htm
|
/// 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
|
/// Internally, this class stores a date/time in two
|
||||||
/// forms (UTC and broken down) for performance reasons. Only use
|
/// 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)
|
inline void DateTime::checkLimit(short& lower, short& higher, short limit)
|
||||||
{
|
{
|
||||||
if (lower >= limit)
|
if (lower >= limit)
|
||||||
{
|
{
|
||||||
higher += short(lower / limit);
|
higher += short(lower / limit);
|
||||||
lower = short(lower % limit);
|
lower = short(lower % limit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user