Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Python helpers for manipulating datetime objects relative to time zones

Project description

This package contains Fleming, which contains a set of routines for doing datetime manipulation. Named after Sandford Fleming, the father of worldwide standard timezones, this package is meant to aid datetime manipulations with regards to timezones.

Fleming addresses some of the common difficulties with timezones and datetime objects, such as performing arithmetic and datetime truncation across a Daylight Savings Time border. It also provides utilities for generating date ranges and getting unix times with respect to timezones.

A brief description of each function in Fleming is below. For more detailed usage examples and descriptions, visit https://github.com/ambitioninc/fleming.

  • convert_to_tz: Converts a datetime object into a provided timezone.
  • add_timedelta: Adds a timedelta to a datetime object.
  • floor: Rounds a datetime object down to the previous time interval.
  • ceil: Rounds a datetime object up to the next time interval.
  • intervals: Gets a range of times at a given timedelta interval.
  • unix_time: Returns a unix time stamp of a datetime object.

Project details


Release history Release notifications

This version
History Node

0.4.6

History Node

0.4.5

History Node

0.4.4

History Node

0.4.3

History Node

0.4

History Node

0.3.1

History Node

0.3

History Node

0.2

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
fleming-0.4.6-py2.py3-none-any.whl (11.1 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Sep 15, 2017
fleming-0.4.6.tar.gz (10.9 kB) Copy SHA256 hash SHA256 Source None Sep 15, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page