GnuCash  4.12-558-g06612b8434
Public Member Functions | Data Fields | Friends
GncDateFormat Class Reference

GnuCash DateFormat class. More...

#include <gnc-datetime.hpp>

Public Member Functions

 GncDateFormat (const char *fmt, const char *re)
 Construct a GncDateFormat with a given format and corresponding regular expression. More...
 

Data Fields

const std::string m_fmt
 A string representing the format. More...
 

Friends

class GncDateImpl
 

Detailed Description

GnuCash DateFormat class.

A helper class to represent a date format understood by the GncDate string/format constructor. Consumers of this header file are not supposed to create objects of this class themselves. Instead they can get a list of the understood formats from the GncDate::c_formats class variable and work with those.

Definition at line 174 of file gnc-datetime.hpp.

Constructor & Destructor Documentation

◆ GncDateFormat()

GncDateFormat::GncDateFormat ( const char *  fmt,
const char *  re 
)
inline

Construct a GncDateFormat with a given format and corresponding regular expression.

This should only be used internally by the GncDate implementation. Consumers should never construct a GncDateFormat themselves!

Definition at line 182 of file gnc-datetime.hpp.

182  :
183  m_fmt(fmt), m_re(re) {}
const std::string m_fmt
A string representing the format.

Field Documentation

◆ m_fmt

const std::string GncDateFormat::m_fmt

A string representing the format.

Definition at line 185 of file gnc-datetime.hpp.


The documentation for this class was generated from the following file: