atlas
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
atlas::io::Time Struct Reference

Store UTC time up to nanosecond precision. More...

#include <Time.h>

Public Member Functions

void print (std::ostream &) const
 print UTC time in ISO 8601 format: "1970-01-01T00:00:00.123456789Z"
 
std::string str () const
 

Static Public Member Functions

static Time now ()
 Create current time using system clock.
 

Public Attributes

std::uint64_t tv_sec {0}
 seconds since Epoch (1970-01-01T00:00:00Z)
 
std::uint64_t tv_nsec {0}
 additional nanoseconds
 

Friends

std::ostream & operator<< (std::ostream &, const Time &)
 
eckit::JSON & operator<< (eckit::JSON &, const Time &)
 

Detailed Description

Store UTC time up to nanosecond precision.

Member Function Documentation

◆ str()

std::string atlas::io::Time::str ( ) const
Returns
string of UTC time in ISO 8601 format: "1970-01-01T00:00:00.123456789Z"

The documentation for this struct was generated from the following files: