faker.providers.date_timeΒΆ

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

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

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

fake.past_datetime(start_date="-30d", tzinfo=None)
# datetime.datetime(2018, 1, 2, 11, 23, 57)

fake.date_this_month(before_today=True, after_today=False)
# datetime.date(2018, 1, 13)

fake.day_of_month()
# '10'

fake.date_object(end_datetime=None)
# datetime.date(1973, 6, 17)

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

fake.time_object(end_datetime=None)
# datetime.time(3, 19, 14)

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

fake.date_this_decade(before_today=True, after_today=False)
# datetime.date(2013, 8, 8)

fake.date_between_dates(date_start=None, date_end=None)
# datetime.date(2018, 1, 16)

fake.year()
# '1989'

fake.timezone()
# 'Asia/Jakarta'

fake.date_time_between_dates(datetime_start=None, datetime_end=None, tzinfo=None)
# datetime.datetime(2018, 1, 16, 16, 8, 52)

fake.month()
# '05'

fake.date_time_this_month(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 1, 1, 0, 59, 31)

fake.future_datetime(end_date="+30d", tzinfo=None)
# datetime.datetime(2018, 1, 27, 4, 18, 54)

fake.date_time(tzinfo=None, end_datetime=None)
# datetime.datetime(1987, 2, 24, 17, 5, 7)

fake.date_time_this_century(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 1, 4, 9, 10, 55)

fake.iso8601(tzinfo=None, end_datetime=None)
# '1975-09-26T09:11:04'

fake.date_time_this_year(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 1, 14, 12, 40, 9)

fake.day_of_week()
# 'Thursday'

fake.date_time_ad(tzinfo=None, end_datetime=None)
# datetime.datetime(1328, 7, 13, 21, 1, 41)

fake.unix_time(end_datetime=None)
# 190550529

fake.century()
# 'VIII'

fake.date_time_between(start_date="-30y", end_date="now", tzinfo=None)
# datetime.datetime(2016, 3, 18, 12, 59, 29)

fake.date_time_this_decade(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2012, 11, 25, 15, 19, 25)

fake.am_pm()
# 'AM'

fake.month_name()
# 'January'

fake.time(pattern="%H:%M:%S", end_datetime=None)
# '01:20:34'

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

fake.date_this_century(before_today=True, after_today=False)
# datetime.date(2015, 7, 9)

fake.time_delta(end_datetime=None)
# datetime.timedelta(919, 25165)