plptools
Loading...
Searching...
No Matches
psitime.cc File Reference
#include "config.h"
#include "psitime.h"
#include <stdint.h>
#include <stdlib.h>
Include dependency graph for psitime.cc:

Go to the source code of this file.

Macros

#define OnePM   3600
 
#define EPOCH_DIFF   0x00dcddb30f2f8000ULL
 The difference between EPOC epoch (01.01.0001 00:00:00) and Unix epoch (01.01.1970 00:00:00) in microseconds. More...
 

Functions

ostreamoperator<< (ostream &s, const PsiTime &t)
 
static long long evalOffset (psi_timezone ptz, time_t time, bool valid)
 

Macro Definition Documentation

◆ EPOCH_DIFF

#define EPOCH_DIFF   0x00dcddb30f2f8000ULL

The difference between EPOC epoch (01.01.0001 00:00:00) and Unix epoch (01.01.1970 00:00:00) in microseconds.

Definition at line 194 of file psitime.cc.

◆ OnePM

#define OnePM   3600

Definition at line 27 of file psitime.cc.

Function Documentation

◆ evalOffset()

static long long evalOffset ( psi_timezone  ptz,
time_t  time,
bool  valid 
)
static

Fallback. If no Psion zone given, use environment variable PSI_TZ

Definition at line 200 of file psitime.cc.

◆ operator<<()

ostream & operator<< ( std::ostream s,
const PsiTime t 
)

This function uses the current locale setting for formatting the time.

Parameters
sThe stream to be written.
tThe instance whose value should be displayed.
Returns
The stream.

Definition at line 180 of file psitime.cc.