libdrmconf 0.13.3
A library to program DMR radios.
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
OrbitalElement::Epoch Struct Reference

Represents a Julien day epoch since a specified year. More...

#include <orbitalelementsdatabase.hh>

Public Member Functions

 Epoch ()
 Default constructor.
 
 Epoch (unsigned int year, unsigned int month, unsigned int day, unsigned int hour, unsigned int minute, unsigned int second, unsigned int microsecond)
 Constructor.
 
 Epoch (const Epoch &other)=default
 Copy constructor.
 
Epochoperator= (const Epoch &other)=default
 Copy assignment.
 
double toEpoch () const
 Computes the decimal epoch as the day of year a

 
QString toString () const
 Encodes the Epoch as YYYY-MM-DDThh:mm:ss.uuuuuu.
 

Static Public Member Functions

static Epoch parse (const QString &datetime)
 Parses a date-time string into the epoch.
 

Public Attributes

unsigned int year
 The year of the epoch.
 
unsigned int month
 The month.
 
unsigned int day
 The day.
 
unsigned int hour
 The hour.
 
unsigned int minute
 The minute.
 
unsigned int second
 The second.
 
unsigned int microsecond
 The microsecond.
 

Detailed Description

Represents a Julien day epoch since a specified year.


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