get_now_datetime_filestamp (function)

get_now_datetime_filestamp(longTime=False)[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'