All Projects → JeffreySarnoff → TimesDates.jl

JeffreySarnoff / TimesDates.jl

Licence: MIT license
Nanosecond resolution for Time and Date, TimeZones

Programming Languages

julia
2034 projects

Projects that are alternatives of or similar to TimesDates.jl

Date Fns Tz
Complementary library for date-fns v2 adding IANA time zone support
Stars: ✭ 385 (+1275%)
Mutual labels:  time, date, timezone
Js Joda
🕑 Immutable date and time library for javascript
Stars: ✭ 1,298 (+4535.71%)
Mutual labels:  time, date, timezone
nepali-datetime
Python's core datetime inspired nepali datetime (BS date & NPT) package 🇳🇵
Stars: ✭ 36 (+28.57%)
Mutual labels:  time, date, timezone
hs-hourglass
efficient and simpler time API for haskell
Stars: ✭ 43 (+53.57%)
Mutual labels:  time, date, timezone
Time
Building a better date/time library for Swift
Stars: ✭ 1,983 (+6982.14%)
Mutual labels:  time, date, timezone
Luatz
Time, Date and Timezone library for lua
Stars: ✭ 92 (+228.57%)
Mutual labels:  time, date, timezone
Timezone Support
Lightweight time zone support for your applications or other date libraries.
Stars: ✭ 90 (+221.43%)
Mutual labels:  time, date, timezone
temps-lite
A smart, good-looking little app which tries to speak your language the way you are used to.
Stars: ✭ 40 (+42.86%)
Mutual labels:  time, date, timezone
Delorean
Delorean: Time Travel Made Easy
Stars: ✭ 1,793 (+6303.57%)
Mutual labels:  time, date, timezone
Date Fns Timezone
Parsing and formatting date strings using IANA time zones for date-fns.
Stars: ✭ 118 (+321.43%)
Mutual labels:  time, date, timezone
Date
A date and time library based on the C++11/14/17 <chrono> header
Stars: ✭ 2,389 (+8432.14%)
Mutual labels:  time, date, timezone
time machine
A date and time API for Dart
Stars: ✭ 120 (+328.57%)
Mutual labels:  time, date, timezone
Travel
Framework agnostic PHP package to control the time.
Stars: ✭ 251 (+796.43%)
Mutual labels:  time, date
Jiffy
Jiffy is a Flutter (Android, IOS and Web) date time package inspired by momentjs for parsing, manipulating, querying and formatting dates
Stars: ✭ 238 (+750%)
Mutual labels:  time, date
Prayer Times Android Azan
Prayer + Time + Android + Kotlin + Azan + Library + timezone + islamic + salah + Library aiming to calculate prayer time with one line code , if you implement prayer time application , there is no need to do this headache again .
Stars: ✭ 251 (+796.43%)
Mutual labels:  time, timezone
timelite
String date and time utilities 🕙
Stars: ✭ 17 (-39.29%)
Mutual labels:  time, date
Sonataintlbundle
Symfony SonataIntlBundle
Stars: ✭ 212 (+657.14%)
Mutual labels:  time, date
nativescript-datetimepicker
Plugin with date and time picking fields
Stars: ✭ 26 (-7.14%)
Mutual labels:  time, date
ptera
Ptera is DateTime library for Deno
Stars: ✭ 62 (+121.43%)
Mutual labels:  time, date
iso8601
A fast ISO8601 date parser for Go
Stars: ✭ 122 (+335.71%)
Mutual labels:  time, date

TimesDates.jl

Nanosecond Resolvable Dates, Times, DateTimes, TimeZones

Copyright © 2018..2022 by Jeffrey Sarnoff.    The MIT License applies.

Docs Latest    

Package Downloads


Setup

install

This package expects Julia v1.6.3 or higher

pkg> up
pkg> add TimeZones
pkg> add CompoundPeriods TimesDates

use

using TimesDates, CompoundPeriods, TimeZones, Dates

The Design

This package provides TimeDate to hold the date and time of day given in nanoseconds (or more coarsely). And providesTimeDateZone to holds the the date and time of day in nanoseconds with a timezone. This work relies heavily on Dates and TimeZones; most of the attention to detail plays through.

Dates has a Time type that has nanosecond resolution; it is not well supported, even within Dates. This Time type recognizes strings only if they are limited to millisecond resolution. Only millisecond resolved times are relevant to DateTimes. While at present limited by this millisecond barrier, TimeZones is a laudable package with active support. I expect an eventual melding of what's best.

Here, the inner dynamics rely upon the Period types (Year .. Day, Hour, .., Nanosecond) and CompoundPeriod all provided by Dates. We distinguish slowtime, which is millisecond resolved, from a nanosecond resolved fasttime.

The general approach is separate the date, slowtime, fasttime, and timezone (if appropriate), then use the date, slowtime and timezone (if appropriate) to obtain a coarse result using the facilities provided by the Date and TimeZones packages. We refine the coarse result by adding or subtracting the fasttime, as appropriate.

Acknowledgements

This work is built atop Dates and TimeZones.

While both are collaborative works, a few people deserve mention:

  • Dates: Jacob Quinn and Stefan Karpinski
  • TimeZones: Curtis Vogt
  • early work on timezones: Avik Sengupta
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].