UCommon
Namespaces | Macros | Typedefs | Functions | Variables
datetime.h File Reference

Basic classes for manipulating time and date based data, particularly that may be in strings. More...

#include <ucommon/platform.h>
#include <ucommon/numbers.h>
#include <ucommon/typeref.h>
#include <unistd.h>
#include <sys/time.h>
#include <time.h>
Include dependency graph for datetime.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ucommon
 Common namespace for all ucommon objects.
 

Macros

#define DATE_BUFFER_SIZE   11
 
#define DATE_STRING_SIZE   10
 
#define DATETIME_BUFFER_SIZE   20
 
#define DATETIME_STRING_SIZE   19
 
#define TIME_BUFFER_SIZE   9
 
#define TIME_STRING_SIZE   8
 

Typedefs

typedef Date ucommon::date_t
 Convenience type for using Date object.
 
typedef DateTimeString ucommon::datetimestring_t
 Convenience type for using DateTimeString object.
 
typedef struct tm tm_t
 Convenience type for struct tm.
 
typedef Time ucommon::tod_t
 Convenience type for using Time object.
 

Functions

class ucommon::__attribute__ ((visibility("default"))) ExclusiveProtocol
 An exclusive locking protocol interface base.
 

Variables

class __attribute__((visibility("default"))) DateTime class __attribute__((visibility("default"))) DateTimeString class __attribute__((visibility("default"))) DateNumber class __attribute__((visibility("default"))) isotime typedef DateTime ucommon::datetime_t
 The Datetime class uses a julian date representation of the current year, month, and day and a integer representation of the current time.
 

Detailed Description

Basic classes for manipulating time and date based data, particularly that may be in strings.

Definition in file datetime.h.

Macro Definition Documentation

◆ DATE_BUFFER_SIZE

#define DATE_BUFFER_SIZE   11

Definition at line 53 of file datetime.h.

◆ DATE_STRING_SIZE

#define DATE_STRING_SIZE   10

Definition at line 52 of file datetime.h.

◆ DATETIME_BUFFER_SIZE

#define DATETIME_BUFFER_SIZE   20

Definition at line 57 of file datetime.h.

◆ DATETIME_STRING_SIZE

#define DATETIME_STRING_SIZE   19

Definition at line 56 of file datetime.h.

◆ TIME_BUFFER_SIZE

#define TIME_BUFFER_SIZE   9

Definition at line 55 of file datetime.h.

◆ TIME_STRING_SIZE

#define TIME_STRING_SIZE   8

Definition at line 54 of file datetime.h.

Typedef Documentation

◆ tm_t

typedef struct tm tm_t

Convenience type for struct tm.

Definition at line 62 of file datetime.h.