This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
Python-MomentX
==============

A lightweight wrapper around datetime with a focus on timezone handling and
few dependencies (only pytz and six).

Provides a immutable date/time type that always has an attached timezone.

This module was originally derived from the [moment module](https://github.com/zachwill/moment)
by Zach Williams. Following the main differences:

* MomentX dates always contain a timezone
* comparison made easy because all MomentX objects are timezone-offset-aware
* strptime with timezone support (%z)
* MomentX objects are immutable (add(), replace(), etc does not alter the object)
* api methods were converted to @classmethod
* zero() is now a method and not a property
* python3 support
* removed js like date formatting options and 'times' dependency

Typical usage may look like this:
```

>>> from momentx import MomentX
>>>
>>> MomentX.utc(2012, 12, 18)
<moment(2012-12-18 00:00:00+0000="" utc)="">
>>>
>>> MomentX(2012, 12, 18, timezone="UTC")
<moment(2012-12-18 00:00:00+0000="" utc)="">
>>>
>>> MomentX(2012, 12, 18, timezone="Europe/Berlin")
<moment(2012-12-18 00:00:00+0100="" europe="" berlin)="">
>>>
>>> MomentX(2012, 12, 18, timezone="Europe/Berlin").astimezone("UTC")
<moment(2012-12-17 23:00:00+0000="" utc)="">
>>>
>>> MomentX(2012, 12, 18, 10, 11, 12, timezone="UTC").replace(hours=3)
<moment(2012-12-18 03:11:12+0000="" utc)="">
>>>
>>> MomentX(2012, 12, 18, 10, 11, 12, timezone="UTC").zero()
<moment(2012-12-18 00:00:00+0000="" utc)="">
>>>
>>> MomentX.utc(2012, 12, 18).add(days=2)
<moment(2012-12-20 00:00:00+0000="" utc)="">
>>>
>>> MomentX.utcnow()
<moment(2016-05-17 18:30:40+0000="" utc)="">
>>>
>>> MomentX.utcnow().strftime('%Y-%m-%d %H:%M:%S%z')
'2016-05-17 18:31:20+0000'

```

Public repository
-----------------

https://github.com/berlincode/momentx


License
-------

Code and documentation copyright Ulf Bartel. Code is licensed under the
[new-style BSD license](./LICENSE.txt).



v0.1.0, 2016-05-17 -- Initial public release.
Release History

Release History

0.1.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
momentx-0.1.0.tar.gz (8.6 kB) Copy SHA256 Checksum SHA256 Source May 17, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting