py_everything.dateUtils

Source code: py_everything/dateUrils.py

This module deals date and time. Like, fetching current date, time, etc.

py_everything.dateUtils.getDate()

This method fetches the date the program is being executed on.

Returns

The date program is being executed on.

py_everything.dateUtils.getDateTime()

This method fetches the date and time the program is being executed on.

Returns

The date and time program is being executed on.

Note

This method returns a float for seconds of the time, like, 12 seconds would be 12.45365. It is very precise.

py_everything.dateUtils.getTime()

This method fetches the time the program is being executed on.

Returns

The time program is being executed on.

py_everything.dateUtils.getCustomFormat(format)

This method fetches the date and/or time in a custom format.

Parameters

format (str) – The format in which the date and/or time should be returned.

Returns

The date and/or current time.

Note

strftime format is used in format. To know more about it see this and this.