faker.providers.date_timeΒΆ

fake.year()
# '2013'

fake.iso8601(tzinfo=None)
# '1995-10-23T10:14:04'

fake.century()
# 'IX'

fake.date_time_ad(tzinfo=None)
# datetime.datetime(1913, 10, 18, 15, 4, 38)

fake.date_time(tzinfo=None)
# datetime(2006, 5, 21, 10, 24, 10)

fake.date_time_this_year(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2017, 6, 24, 16, 10, 40)

fake.date_object()
# date(1972, 6, 2)

fake.day_of_week()
# 'Wednesday'

fake.past_date(start_date="-30d", tzinfo=None)
# datetime.date(2017, 8, 4)

fake.past_datetime(start_date="-30d", tzinfo=None)
# datetime.datetime(2017, 8, 6, 4, 27, 8)

fake.day_of_month()
# '07'

fake.time_object()
# datetime.time(17, 45, 54)

fake.am_pm()
# 'AM'

fake.month()
# '09'

fake.date_time_between(start_date="-30y", end_date="now", tzinfo=None)
# datetime.datetime(1995, 7, 10, 13, 52, 7)

fake.time_delta()
# datetime.timedelta(9208, 12480)

fake.date_time_this_decade(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2012, 6, 28, 0, 48, 14)

fake.date_time_this_century(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2007, 12, 27, 1, 7, 57)

fake.future_datetime(end_date="+30d", tzinfo=None)
# datetime.datetime(2017, 9, 8, 15, 8, 21)

fake.date(pattern="%Y-%m-%d")
# '1981-11-18'

fake.time(pattern="%H:%M:%S")
# '02:42:24'

fake.date_time_between_dates(datetime_start=None, datetime_end=None, tzinfo=None)
# datetime.datetime(2017, 8, 17, 17, 51, 9)

fake.time_series(start_date="-30d", end_date="now", precision=None, distrib=None, tzinfo=None)
# <generator object time_series at 0x7fdd835f0728>

fake.timezone()
# 'Pacific/Efate'

fake.date_time_this_month(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2017, 8, 10, 21, 2, 46)

fake.month_name()
# 'April'

fake.future_date(end_date="+30d", tzinfo=None)
# datetime.date(2017, 8, 25)

fake.unix_time()
# 82125726