C++ Utils  0.1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
Static Public Member Functions
utils::TimeUtils Class Reference

#include <timeutils.h>

List of all members.

Static Public Member Functions

static std::string timeAsString (const std::string &formatString, time_t time)
static std::string timeAsString (const std::string &formatString)

Detailed Description

A collection of usefull time functions


Member Function Documentation

static std::string utils::TimeUtils::timeAsString ( const std::string &  formatString,
time_t  time 
) [inline, static]

Formats a string using strftime

Taken from http://stackoverflow.com/questions/7935483/c-function-to-format-time-t-as-stdstring-buffer-length

Returns:
A copy of formatString, with all k replaced with the time information
static std::string utils::TimeUtils::timeAsString ( const std::string &  formatString) [inline, static]

Formats a string using strftime

Taken from http://stackoverflow.com/questions/7935483/c-function-to-format-time-t-as-stdstring-buffer-length

Returns:
A copy of formatString, with all k replaced with the time information

Returns the formated time for the current time


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines