imdrasil / time_zone Goto Github PK
View Code? Open in Web Editor NEWTime Zone provides daylight savings aware transformations between times in different time zones.
License: MIT License
Time Zone provides daylight savings aware transformations between times in different time zones.
License: MIT License
require "time_zone"
^
in lib/time_zone/src/time_zone.cr:19: while requiring "./time_zone/time"
require "./time_zone/time"
^
in lib/time_zone/src/time_zone/time.cr:4: while requiring "./time/canonical_time_instance_methods"
require "./time/canonical_time_instance_methods"
^
in lib/time_zone/src/time_zone/time/canonical_time_instance_methods.cr:4: undefined constant ::Time::Kind
alias Kind = ::Time::Kind
Crystal's stdlib has had support for time zones since early this year in master and it will be included in the upcoming release Crystal 0.25.0. Maybe you have already taken a look at this? (the process is documented in crystal-lang/crystal#5324)
Most of the features this shard provides are already implemented there, even with a cleaner API (due to being directly integrated in the standard library).
There are a certainly quite a few things this shard offers that are not in the stdlib implementation. For example parsing timezone db files in text format (this is usually not really needed as the binary format is more memory and time efficient). Or integrating country codes to time zones, mostly trivial mapping.
Maybe there are other features as well, that I've missed. Please let me know!
While such features are probably not all suited for the standard library, it would certainly make sense to make them available as shards integrating with the new time zone API in the stdlib.
This could be a good time to join forces and discuss design and implementations of a new time and time zone related shard to provide enhanced features based on the stdlib API.
I'd be happy if you're willing to contribute.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.