faker.providers.date_timeΒΆ

fake.month()
# '02'

fake.year()
# '2003'

fake.date_between(start_date="-30y", end_date="today")
# datetime.date(2016, 12, 13)

fake.date_this_month(before_today=True, after_today=False)
# datetime.date(2018, 12, 8)

fake.month_name()
# 'November'

fake.date_time(tzinfo=None, end_datetime=None)
# datetime.datetime(1977, 2, 12, 1, 37, 28)

fake.date_time_ad(tzinfo=None, end_datetime=None, start_datetime=None)
# datetime.datetime(532, 1, 5, 4, 17, 38)

fake.iso8601(tzinfo=None, end_datetime=None)
# '2012-10-28T21:58:26'

fake.date_of_birth(tzinfo=None, minimum_age=0, maximum_age=115)
# datetime.date(1948, 2, 1)

fake.future_date(end_date="+30d", tzinfo=None)
# datetime.date(2019, 1, 12)

fake.date_this_decade(before_today=True, after_today=False)
# datetime.date(2015, 5, 2)

fake.time_delta(end_datetime=None)
# datetime.timedelta(2374, 13930)

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

fake.date_time_between_dates(datetime_start=None, datetime_end=None, tzinfo=None)
# datetime.datetime(2018, 12, 19, 17, 10, 27)

fake.past_datetime(start_date="-30d", tzinfo=None)
# datetime.datetime(2018, 11, 27, 20, 45, 33)

fake.unix_time(end_datetime=None, start_datetime=None)
# 78488120

fake.am_pm()
# 'PM'

fake.timezone()
# 'Pacific/Majuro'

fake.century()
# 'XIII'

fake.date_object(end_datetime=None)
# datetime.date(2011, 4, 8)

fake.day_of_week()
# 'Wednesday'

fake.time_object(end_datetime=None)
# datetime.time(12, 7, 16)

fake.future_datetime(end_date="+30d", tzinfo=None)
# datetime.datetime(2019, 1, 18, 8, 55, 50)

fake.time(pattern="%H:%M:%S", end_datetime=None)
# '09:46:24'

fake.date(pattern="%Y-%m-%d", end_datetime=None)
# '2002-05-02'

fake.date_time_between(start_date="-30y", end_date="now", tzinfo=None)
# datetime.datetime(2004, 1, 20, 12, 7, 38)

fake.date_time_this_century(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2001, 3, 6, 9, 54, 26)

fake.day_of_month()
# '31'

fake.date_time_this_year(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 1, 22, 13, 29, 54)

fake.date_time_this_decade(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2015, 5, 25, 0, 24, 9)

fake.date_time_this_month(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 12, 9, 9, 12, 30)

fake.date_this_year(before_today=True, after_today=False)
# datetime.date(2018, 11, 1)

fake.past_date(start_date="-30d", tzinfo=None)
# datetime.date(2018, 11, 23)

fake.date_this_century(before_today=True, after_today=False)
# datetime.date(2014, 9, 30)

fake.date_between_dates(date_start=None, date_end=None)
# datetime.date(2018, 12, 19)