nlib
DateTime.h File Reference

Defines the class for handling times and durations. More...

#include "nn/nlib/Config.h"

Go to the source code of this file.

Classes

class  nn::nlib::TimeValue
 The class that wraps 64-bit signed integers. More...
 
class  nn::nlib::TimeSpan
 The class for representing the time. More...
 
struct  nn::nlib::DateTimeParams
 The structure for setting date and time information in DateTime and for getting that information from the object. More...
 
class  nn::nlib::DateTime
 The class for representing the date and time. More...
 

Namespaces

 nn::nlib
 Implements stream-related classes usually commonly used, various containers, and other gadget classes. nlib_ns is an alias.
 

Functions

errno_t nn::nlib::GetNintendoTime (int64_t *t) noexcept
 Returns the amount of time that has elapsed, in units of milliseconds, starting from 2000-01-01. More...
 
uint64_t nn::nlib::GetTickTime () noexcept
 Returns the time in units of milliseconds that has elapsed since the system started. More...
 
bool nn::nlib::operator== (const TimeValue &lhs, const TimeValue &rhs) noexcept
 A relational operator.
 
bool nn::nlib::operator< (const TimeValue &lhs, const TimeValue &rhs) noexcept
 A relational operator.
 
bool nn::nlib::operator!= (const TimeValue &lhs, const TimeValue &rhs) noexcept
 A relational operator.
 
bool nn::nlib::operator> (const TimeValue &lhs, const TimeValue &rhs) noexcept
 A relational operator.
 
bool nn::nlib::operator<= (const TimeValue &lhs, const TimeValue &rhs) noexcept
 A relational operator.
 
bool nn::nlib::operator>= (const TimeValue &lhs, const TimeValue &rhs) noexcept
 A relational operator.
 
TimeValue nn::nlib::operator+ (const TimeValue &lhs, const TimeValue &rhs) noexcept
 Adds.
 
TimeValue nn::nlib::operator- (const TimeValue &lhs, const TimeValue &rhs) noexcept
 Subtracts.
 
TimeSpan nn::nlib::operator+ (const TimeSpan &lhs, const TimeSpan &rhs) noexcept
 Adds.
 
TimeSpan nn::nlib::operator- (const TimeSpan &lhs, const TimeSpan &rhs) noexcept
 Subtracts.
 
TimeSpan nn::nlib::operator* (int i, const TimeSpan &rhs) noexcept
 Increases rhs by a factor of i.
 
TimeSpan nn::nlib::operator* (double d, const TimeSpan &rhs) noexcept
 Increases rhs by a factor of d.
 
TimeSpan nn::nlib::operator* (const TimeSpan &lhs, int i) noexcept
 Increases rhs by a factor of i.
 
TimeSpan nn::nlib::operator* (const TimeSpan &lhs, double d) noexcept
 Increases rhs by a factor of d.
 
DateTime nn::nlib::operator+ (const DateTime &lhs, const TimeSpan &rhs) noexcept
 Returns the time that is the rhs amount of time into the future from lhs.
 
DateTime nn::nlib::operator- (const DateTime &lhs, const TimeSpan &rhs) noexcept
 Returns the time that is the rhs amount of time back in the past from lhs.
 
TimeSpan nn::nlib::operator- (const DateTime &lhs, const DateTime &rhs) noexcept
 Returns the duration between the times of rhs and lhs.
 

Detailed Description

Defines the class for handling times and durations.

Definition in file DateTime.h.