MECO™ API Reference
Functions
mMeco.core.dateTimeLib Namespace Reference

[ MODULE ] - Functionalities to operate with date and time. More...

Functions

def getDateIntList ()
 Get date as int list in [YYYY, MM, DD] format. More...
 
def getTimeIntList ()
 Get time as int list in [HH, MM, SS] format. More...
 
def getDateStrList ()
 Get date as string list in [YYYY, MM, DD] format. More...
 
def getTimeStrList ()
 Get time as string list in [HH, MM, SS] format. More...
 
def getDateTimeForFileSystem ()
 Get date and time as single string in "YYYY.MM.DD_HH.MM.SS" format. More...
 
def getDateStamp ()
 Get date as string in "YYYY.MM.DD" format. More...
 
def getTimeStamp ()
 Get time as string in "HH:MM:SS" format. More...
 
def getDateTimeStamp ()
 Get date and time as single string in "YYYY.MM.DD - HH:MM:SS" format. More...
 

Detailed Description

[ MODULE ] - Functionalities to operate with date and time.

import mMeco.dateTimeLib
mMeco.dateTimeLib.getDateIntList()
#[2013, 10, 6]
mMeco.dateTimeLib.getTimeIntList()
#[20, 50, 34]
mMeco.dateTimeLib.getDateStrList()
#['2013', '10', '06']
mMeco.dateTimeLib.getTimeStrList()
#['19', '31', '59']
mMeco.dateTimeLib.getDateTimeForFileSystem()
#2013.05.20_19.32.22
mMeco.dateTimeLib.getDateStamp()
#2013.04.13
mMeco.dateTimeLib.getTimeStamp()
#19:33:05
mMeco.dateTimeLib.getDateTimeStamp()
#2013.02.11 - 19:33:20

Function Documentation

◆ getDateIntList()

def mMeco.core.dateTimeLib.getDateIntList ( )

Get date as int list in [YYYY, MM, DD] format.

Exceptions
N/A
Returns
list of int - Date.

◆ getTimeIntList()

def mMeco.core.dateTimeLib.getTimeIntList ( )

Get time as int list in [HH, MM, SS] format.

Exceptions
N/A
Returns
list of int - Time.

◆ getDateStrList()

def mMeco.core.dateTimeLib.getDateStrList ( )

Get date as string list in [YYYY, MM, DD] format.

Exceptions
N/A
Returns
list of str - Date.

◆ getTimeStrList()

def mMeco.core.dateTimeLib.getTimeStrList ( )

Get time as string list in [HH, MM, SS] format.

Exceptions
N/A
Returns
list of str - Time.

◆ getDateTimeForFileSystem()

def mMeco.core.dateTimeLib.getDateTimeForFileSystem ( )

Get date and time as single string in "YYYY.MM.DD_HH.MM.SS" format.

Exceptions
N/A
Returns
str - Date and time.

◆ getDateStamp()

def mMeco.core.dateTimeLib.getDateStamp ( )

Get date as string in "YYYY.MM.DD" format.

Exceptions
N/A
Returns
str - Date.

◆ getTimeStamp()

def mMeco.core.dateTimeLib.getTimeStamp ( )

Get time as string in "HH:MM:SS" format.

Exceptions
N/A
Returns
str - Time.

◆ getDateTimeStamp()

def mMeco.core.dateTimeLib.getDateTimeStamp ( )

Get date and time as single string in "YYYY.MM.DD - HH:MM:SS" format.

Exceptions
N/A
Returns
str - Date and time.