Public Member Functions | Public Attributes | List of all members
ibis::column::unixTimeScribe Struct Reference

A functor for formatting unix time using the user supplied format. More...

#include <column.h>

Public Member Functions

unixTimeScribedup () const
 
void operator() (std::ostream &, int64_t) const
 Format the integer value ut assuming it is representing a unix time stamp. More...
 
void operator() (std::ostream &, double) const
 
unixTimeScribeoperator= (const unixTimeScribe &rhs)
 
 unixTimeScribe (const char *fmt, const char *tz=0)
 Constructor.
 
 unixTimeScribe (const unixTimeScribe &rhs)
 Copy constructor.
 
 ~unixTimeScribe ()
 Denstructor.
 

Public Attributes

const char * format_
 
const char * timezone_
 

Detailed Description

A functor for formatting unix time using the user supplied format.

Member Function Documentation

void ibis::column::unixTimeScribe::operator() ( std::ostream &  out,
int64_t  ut 
) const

Format the integer value ut assuming it is representing a unix time stamp.

Note
The unix time is measured as seconds since the beginning of 1970. The original definition uses a 32-bit integer. This funciton uses a 64-bit integer to provide a large range.

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

Make It A Bit Faster
Contact us
Disclaimers
FastBit source code
FastBit mailing list archive