fundamentals.download.get_now_datetime_filestamp¶
Generate the datetime stamp for filenames
- Author
David Young
Module Contents¶
Functions¶
A datetime stamp to be appended to the end of filenames: ‘YYYYMMDDtHHMMSS’ |
API¶
- fundamentals.download.get_now_datetime_filestamp.get_now_datetime_filestamp(longTime=False)[source][source]¶
A datetime stamp to be appended to the end of filenames: ‘YYYYMMDDtHHMMSS’
Key Arguments
longTime– make time string longer (more change of filenames being unique)
Return
now– current time and date in filename format
Usage
from fundamentals.download import get_now_datetime_filestamp get_now_datetime_filestamp(longTime=False) #Out: '20160316t154635' get_now_datetime_filestamp(longTime=True) #Out: '20160316t154644133638'