Public Member Functions | Public Attributes | Private Member Functions | List of all members
mycroft.util.format.DateTimeFormat Class Reference

Public Member Functions

def __init__ (self, config_path)
 
def cache (self, lang)
 
def date_format (self, dt, lang, now)
 
def date_time_format (self, dt, lang, now, use_24hour, use_ampm)
 
def year_format (self, dt, lang, bc)
 

Public Attributes

 config_path
 
 lang_config
 

Private Member Functions

def _decade_format (self, number, number_tuple, lang)
 
def _format_string (self, number, format_section, lang)
 
def _number_format_hundreds (self, number, number_tuple, lang, formatted_decade)
 
def _number_format_thousand (self, number, number_tuple, lang, formatted_decade, formatted_hundreds)
 
def _number_strings (self, number, lang)
 

Detailed Description

Definition at line 85 of file format.py.

Constructor & Destructor Documentation

def mycroft.util.format.DateTimeFormat.__init__ (   self,
  config_path 
)

Definition at line 86 of file format.py.

Member Function Documentation

def mycroft.util.format.DateTimeFormat._decade_format (   self,
  number,
  number_tuple,
  lang 
)
private

Definition at line 160 of file format.py.

def mycroft.util.format.DateTimeFormat._format_string (   self,
  number,
  format_section,
  lang 
)
private

Definition at line 150 of file format.py.

def mycroft.util.format.DateTimeFormat._number_format_hundreds (   self,
  number,
  number_tuple,
  lang,
  formatted_decade 
)
private

Definition at line 167 of file format.py.

def mycroft.util.format.DateTimeFormat._number_format_thousand (   self,
  number,
  number_tuple,
  lang,
  formatted_decade,
  formatted_hundreds 
)
private

Definition at line 175 of file format.py.

def mycroft.util.format.DateTimeFormat._number_strings (   self,
  number,
  lang 
)
private

Definition at line 114 of file format.py.

def mycroft.util.format.DateTimeFormat.cache (   self,
  lang 
)

Definition at line 90 of file format.py.

def mycroft.util.format.DateTimeFormat.date_format (   self,
  dt,
  lang,
  now 
)

Definition at line 188 of file format.py.

def mycroft.util.format.DateTimeFormat.date_time_format (   self,
  dt,
  lang,
  now,
  use_24hour,
  use_ampm 
)

Definition at line 211 of file format.py.

def mycroft.util.format.DateTimeFormat.year_format (   self,
  dt,
  lang,
  bc 
)

Definition at line 218 of file format.py.

Member Data Documentation

mycroft.util.format.DateTimeFormat.config_path

Definition at line 88 of file format.py.

mycroft.util.format.DateTimeFormat.lang_config

Definition at line 87 of file format.py.


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


mycroft_ros
Author(s):
autogenerated on Mon Apr 26 2021 02:35:41