positivist_date
Version, currently 0.1.23 versions
- 0.1.2latestJul 2, 2017
- 0.1.1not indexedJul 2, 2017
- 0.1.0not indexedJul 2, 2017
github.com/TPei/positivist_date
PostivistDate module to replace the traditional Time module for the positivist fans :D
0 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
positivist_date:
github: TPei/positivist_date
version: ~> 0.1.2Then run:
shards installshard.yml
- Crystal
0.22.0- License
- MIT
- Author
- TPei
- Target
positivist_datefrom src/positivist_date.cr
Dependencies
This version declares no dependencies.
README
positivist_date 
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
- Fork it ( https://github.com/tpei/positivist_date/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- tpei TPei - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.2- Tagged
- Jul 2, 2017
- Commit
bc6d6761432d- Crystal
0.22.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/TPei/positivist_date
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 3