faker.providers.date_timeΒΆ

fake.date_this_year(before_today=True, after_today=False)
# datetime.date(2018, 2, 13)

fake.time(pattern="%H:%M:%S", end_datetime=None)
# '17:52:58'

fake.date_this_century(before_today=True, after_today=False)
# datetime.date(2012, 4, 25)

fake.century()
# 'V'

fake.time_delta(end_datetime=None)
# datetime.timedelta(10480, 51032)

fake.date_time_this_decade(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2013, 12, 19, 9, 2, 53)

fake.day_of_month()
# '23'

fake.month()
# '10'

fake.date_time_this_year(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 4, 9, 16, 21, 57)

fake.date_time_this_month(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 4, 19, 14, 0, 26)

fake.timezone()
# 'Africa/Sao_Tome'

fake.date_time_between(start_date="-30y", end_date="now", tzinfo=None)
# datetime.datetime(2002, 7, 1, 20, 2, 33)

fake.date_time(tzinfo=None, end_datetime=None)
# datetime.datetime(1994, 1, 14, 10, 26, 30)

fake.date_time_between_dates(datetime_start=None, datetime_end=None, tzinfo=None)
# datetime.datetime(2018, 4, 19, 14, 18, 46)

fake.date_between(start_date="-30y", end_date="today")
# datetime.date(2001, 7, 15)

fake.date_time_ad(tzinfo=None, end_datetime=None)
# datetime.datetime(359, 4, 30, 14, 49, 31)

fake.past_datetime(start_date="-30d", tzinfo=None)
# datetime.datetime(2018, 4, 8, 21, 8, 34)

fake.day_of_week()
# 'Thursday'

fake.month_name()
# 'December'

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

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

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

fake.future_date(end_date="+30d", tzinfo=None)
# datetime.date(2018, 5, 17)

fake.date_this_decade(before_today=True, after_today=False)
# datetime.date(2017, 6, 3)

fake.iso8601(tzinfo=None, end_datetime=None)
# '1977-06-08T11:33:28'

fake.date_object(end_datetime=None)
# datetime.date(2000, 12, 28)

fake.date_time_this_century(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2006, 5, 4, 23, 39, 5)

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

fake.year()
# '2005'

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

fake.date_this_month(before_today=True, after_today=False)
# datetime.date(2018, 4, 9)

fake.unix_time(end_datetime=None)
# 1004699966

fake.future_datetime(end_date="+30d", tzinfo=None)
# datetime.datetime(2018, 4, 25, 6, 46, 24)

fake.am_pm()
# 'PM'