faker.providers.date_timeΒΆ

fake.date_this_century(before_today=True, after_today=False)
# datetime.date(2008, 3, 29)

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

fake.date_this_decade(before_today=True, after_today=False)
# datetime.date(2012, 4, 30)

fake.date_time(tzinfo=None, end_datetime=None)
# datetime.datetime(1986, 6, 6, 1, 58, 11)

fake.time_object(end_datetime=None)
# datetime.time(2, 20, 20)

fake.am_pm()
# 'AM'

fake.date_between_dates(date_start=None, date_end=None)
# datetime.date(2018, 11, 13)

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

fake.date_time_ad(tzinfo=None, end_datetime=None, start_datetime=None)
# datetime.datetime(753, 11, 2, 15, 13, 16)

fake.date_time_this_century(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2008, 2, 13, 4, 25, 31)

fake.month()
# '08'

fake.past_datetime(start_date="-30d", tzinfo=None)
# datetime.datetime(2018, 11, 4, 1, 39, 30)

fake.day_of_month()
# '03'

fake.date_time_this_decade(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 6, 25, 11, 17, 26)

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

fake.century()
# 'II'

fake.iso8601(tzinfo=None, end_datetime=None)
# '1973-09-22T16:56:53'

fake.year()
# '2008'

fake.date_this_month(before_today=True, after_today=False)
# datetime.date(2018, 11, 10)

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

fake.date(pattern="%Y-%m-%d", end_datetime=None)
# '1975-07-19'

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

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

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

fake.month_name()
# 'January'

fake.date_of_birth(tzinfo=None, minimum_age=0, maximum_age=115)
# datetime.date(1976, 12, 14)

fake.date_time_this_month(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 11, 3, 7, 5, 50)

fake.time_delta(end_datetime=None)
# datetime.timedelta(2099, 44906)

fake.date_object(end_datetime=None)
# datetime.date(1980, 1, 5)

fake.timezone()
# 'Europe/Tirane'

fake.date_time_between(start_date="-30y", end_date="now", tzinfo=None)
# datetime.datetime(1989, 10, 24, 17, 12, 11)

fake.day_of_week()
# 'Saturday'

fake.future_datetime(end_date="+30d", tzinfo=None)
# datetime.datetime(2018, 11, 24, 23, 25, 11)

fake.date_time_between_dates(datetime_start=None, datetime_end=None, tzinfo=None)
# datetime.datetime(2018, 11, 13, 16, 51, 18)

fake.date_time_this_year(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 7, 19, 6, 11, 11)