faker.providers.date_timeΒΆ

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

fake.day_of_week()
# 'Tuesday'

fake.date_time_between(start_date="-30y", end_date="now", tzinfo=None)
# datetime.datetime(2018, 4, 22, 16, 10, 3)

fake.date_this_year(before_today=True, after_today=False)
# datetime.date(2019, 1, 17)

fake.future_datetime(end_date="+30d", tzinfo=None)
# datetime.datetime(2019, 2, 3, 2, 17, 2)

fake.day_of_month()
# '21'

fake.date_between_dates(date_start=None, date_end=None)
# datetime.date(2019, 1, 22)

fake.century()
# 'XIV'

fake.date_time_this_decade(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2016, 12, 2, 17, 2, 46)

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

fake.date_time_this_month(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2019, 1, 3, 17, 47, 39)

fake.date_this_century(before_today=True, after_today=False)
# datetime.date(2013, 10, 20)

fake.month_name()
# 'October'

fake.time_object(end_datetime=None)
# datetime.time(6, 55, 40)

fake.date_time_this_century(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2012, 11, 27, 17, 11, 16)

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

fake.date_this_month(before_today=True, after_today=False)
# datetime.date(2019, 1, 3)

fake.time(pattern="%H:%M:%S", end_datetime=None)
# '00:05:23'

fake.am_pm()
# 'AM'

fake.date_this_decade(before_today=True, after_today=False)
# datetime.date(2014, 11, 15)

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

fake.date_of_birth(tzinfo=None, minimum_age=0, maximum_age=115)
# datetime.date(1985, 8, 25)

fake.date(pattern="%Y-%m-%d", end_datetime=None)
# '2004-12-12'

fake.date_object(end_datetime=None)
# datetime.date(1985, 9, 2)

fake.date_time_ad(tzinfo=None, end_datetime=None, start_datetime=None)
# datetime.datetime(499, 4, 30, 4, 59, 29)

fake.date_time_this_year(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2019, 1, 15, 15, 55, 36)

fake.time_delta(end_datetime=None)
# datetime.timedelta(9825, 68555)

fake.iso8601(tzinfo=None, end_datetime=None)
# '1981-12-17T13:42:06'

fake.date_time(tzinfo=None, end_datetime=None)
# datetime.datetime(1989, 11, 29, 20, 23, 5)

fake.date_time_between_dates(datetime_start=None, datetime_end=None, tzinfo=None)
# datetime.datetime(2019, 1, 22, 17, 8, 19)

fake.timezone()
# 'Asia/Bangkok'

fake.month()
# '03'

fake.past_date(start_date="-30d", tzinfo=None)
# datetime.date(2019, 1, 17)

fake.past_datetime(start_date="-30d", tzinfo=None)
# datetime.datetime(2019, 1, 7, 11, 8, 5)

fake.year()
# '2007'