Skip to main content

A datatype which stores a year and a month.

Project description

A datatype which stores a year and a month.

This packages provides the datatype Month (typical usage: Month(4, 2003)), which supports conversion to and from strings, as well as a zope.schema field and widgets for both zope.formlib and z3c.form.

To use, <include package=”gocept.month”/> and for example, use in an interface like this:

>>> import gocept.month
>>> import zope.interface
>>> import zope.schema
>>> class IContract(zope.interface.Interface):
...     title = zope.schema.TextLine(title=u"Contract title")
...     start = gocept.month.MonthField(title=u"Starting date")
...     end = gocept.month.MonthField(title=u"Ending date")

CHANGES

1.0 (2009-10-05)

  • initial public release.

Project details


Download files

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

Source Distribution

gocept.month-1.0.tar.gz (8.9 kB view details)

Uploaded Source

File details

Details for the file gocept.month-1.0.tar.gz.

File metadata

  • Download URL: gocept.month-1.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gocept.month-1.0.tar.gz
Algorithm Hash digest
SHA256 4e7c6f7d3e76ad877f6401894493fcf55a3fcb3132cbac7f3b3827281d30a23c
MD5 c9abcbb24760ea77f7a249f3fcabbefc
BLAKE2b-256 9683aa505dbba71d0c426a10eda527bfbcbbbb277a2024d08661ce6550581073

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page