faker.providers.date_timeΒΆ

fake.am_pm()
# 'PM'

fake.century()
# 'I'

fake.date(pattern='%Y-%m-%d', end_datetime=None)
# '1976-05-09'

fake.date_between(start_date='-30y', end_date='today')
# datetime.date(2016, 8, 14)

fake.date_between_dates(date_start=None, date_end=None)
# datetime.date(2020, 1, 14)

fake.date_object(end_datetime=None)
# datetime.date(1989, 6, 27)

fake.date_of_birth(tzinfo=None, minimum_age=0, maximum_age=115)
# datetime.date(1914, 10, 30)

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

fake.date_this_decade(before_today=True, after_today=False)
# datetime.date(2020, 1, 1)

fake.date_this_month(before_today=True, after_today=False)
# datetime.date(2020, 1, 11)

fake.date_this_year(before_today=True, after_today=False)
# datetime.date(2020, 1, 10)

fake.date_time(tzinfo=None, end_datetime=None)
# datetime.datetime(2016, 6, 27, 21, 0, 53)

fake.date_time_ad(tzinfo=None, end_datetime=None, start_datetime=None)
# datetime.datetime(1221, 3, 19, 12, 14, 35)

fake.date_time_between(start_date='-30y', end_date='now', tzinfo=None)
# datetime.datetime(2004, 10, 2, 11, 12, 15)

fake.date_time_between_dates(datetime_start=None, datetime_end=None, tzinfo=None)
# datetime.datetime(2020, 1, 14, 18, 16, 13)

fake.date_time_this_century(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2007, 10, 19, 4, 0, 49)

fake.date_time_this_decade(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2020, 1, 3, 6, 49, 10)

fake.date_time_this_month(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2020, 1, 3, 4, 16, 9)

fake.date_time_this_year(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2020, 1, 6, 3, 33, 40)

fake.day_of_month()
# '26'

fake.day_of_week()
# 'Sunday'

fake.future_date(end_date='+30d', tzinfo=None)
# datetime.date(2020, 1, 28)

fake.future_datetime(end_date='+30d', tzinfo=None)
# datetime.datetime(2020, 1, 30, 11, 34, 51)

fake.iso8601(tzinfo=None, end_datetime=None)
# '2015-10-28T13:03:48'

fake.month()
# '05'

fake.month_name()
# 'February'

fake.past_date(start_date='-30d', tzinfo=None)
# datetime.date(2020, 1, 10)

fake.past_datetime(start_date='-30d', tzinfo=None)
# datetime.datetime(2019, 12, 22, 18, 5, 32)

fake.time(pattern='%H:%M:%S', end_datetime=None)
# '18:00:15'

fake.time_delta(end_datetime=None)
# datetime.timedelta(0)

fake.time_object(end_datetime=None)
# datetime.time(10, 48, 35)

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

fake.timezone()
# 'Africa/Mbabane'

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

fake.year()
# '2015'