Provide conversion from posix time.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17656 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-11-09 20:29:10 +00:00
parent 4b82681c65
commit 8ee9da05ed

View File

@ -315,6 +315,15 @@ namespace sys {
this->normalize();
}
/// Converts the \p seconds argument from PosixTime to the corresponding
/// TimeValue and assigns that value to \p this.
/// @brief Convert seconds form PosixTime to TimeValue
void fromPosixTime( SecondsType seconds ) {
seconds_ = seconds + PosixZeroTime.seconds_;
nanos_ = 0;
this->normalize();
}
/// @}
/// @name Implementation
/// @{