mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
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:
parent
4b82681c65
commit
8ee9da05ed
@ -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
|
||||
/// @{
|
||||
|
Loading…
Reference in New Issue
Block a user