get_now_sql_datetime (function)

get_now_sql_datetime()[source]

A datetime stamp in MySQL format: ‘YYYY-MM-DDTHH:MM:SS’

Return

  • now – current time and date in MySQL format

Usage

from fundamentals import times
now = times.get_now_sql_datetime()
print now

# OUT: 2016-03-18T11:08:23