positivist_date

Version, currently 0.1.03 versions

github.com/TPei/positivist_date

PostivistDate module to replace the traditional Time module for the positivist fans :D

0 stars
0 dependents
License: MIT

Nothing has been indexed for 0.1.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.

Installation

# Add this to your shard.yml
dependencies:
  positivist_date:
    github: TPei/positivist_date
    version: ~> 0.1.0

Then run:

shards install

shard.yml

No shard.yml has been indexed for 0.1.0. You can read it on the repository.

Dependencies

Unknown: the shard.yml for this version has not been read yet.

README

This README is the one indexed from the repository at its latest ref, not from the tag for this version.

positivist_date Build Status

Implementation of the Positivist Calendar as an alternative to Crystal's Time

Installation

Add to your shard.yml

dependencies:
  positivist_date:
    github: tpei/positivist_date
    branch: master

and then install the library into your project with

$ crystal deps

Usage

# Can be used as Time would be
pd = PositivistDate.new(224, 6, 13, 13, 37)
pd.hour # => 13
pd.saturday? # => true

# allows converting to time instance
pd.to_time # => #<Time:0x10c581fa0>

# PostivistDate instances can be created from Time instances
PositivistDate.from_time Time.now # => #<PositivistDate:0x1084f9f50>

Development

TODO: Write development instructions here

Contributing

  1. Fork it ( https://github.com/tpei/positivist_date/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • tpei TPei - creator, maintainer