boost.png (6897 bytes) Home Libraries People FAQ More

PrevUpHomeNext

Struct c_time

boost::date_time::c_time — Provides a uniform interface to some 'ctime' functions.

Synopsis

struct c_time {

  // public static functions
  std::tm * localtime(const std::time_t *, std::tm *) ;
  std::tm * gmtime(const std::time_t *, std::tm *) ;
  std::tm * localtime(const std::time_t *, std::tm *) ;
  std::tm * gmtime(const std::time_t *, std::tm *) ;
};

Description

Provides a uniform interface to some ctime functions and their '_r' counterparts. The '_r' functions require a pointer to a user created std::tm struct whereas the regular functions use a staticly created struct and return a pointer to that. These wrapper functions require the user to create a std::tm struct and send in a pointer to it. A pointer to the user created struct will be returned.

c_time public static functions

  1. std::tm * localtime(const std::time_t * t, std::tm * result) ;
  2. std::tm * gmtime(const std::time_t * t, std::tm * result) ;
  3. std::tm * localtime(const std::time_t * t, std::tm * result) ;
  4. std::tm * gmtime(const std::time_t * t, std::tm * result) ;
Copyright © 2001-2005 CrystalClear Software, Inc

PrevUpHomeNext