Skip to content

Instantly share code, notes, and snippets.

@voluntas
Last active December 10, 2015 16:48
Show Gist options
  • Save voluntas/4462994 to your computer and use it in GitHub Desktop.
Save voluntas/4462994 to your computer and use it in GitHub Desktop.
Erlang 日付ライブラリ シラベモノ

Erlang 日付ライブラリ シラベモノ

更新

2013-01-06

バージョン

0.0.4

作者

@voluntas

URL

http://voluntas.github.com/

目的

標準になる日付ライブラリを調査します、デファクトを知ることが目的です。

理由

Erlang/OTP 標準の calendar ライブラリは正直イケテルと言えません。

だからといって rebar や mochiweb レベルのデファクトライブラリを知りません。

日付ライブラリに求めるモノ

Python の dateutil ライブラリが理想に近いです。単に Python しか知らないだけですが。

python-dateutil

http://labix.org/python-dateutil

以下のライブラリも便利とのことです。js の moment.js というライブラリにインスパイアされて作ったらしい

crsmithdev/arrow

GitHub https://github.com/crsmithdev/arrow

まずは Python の date や time 、 datetime ライブラリが欲しいです。

isoformat

>>> import datetime
>>> d = datetime.datetime.now()
>>> d.isoformat()
'2013-01-06T20:47:39.703916'

既存ライブラリ

GitHub から日付関連のライブラリを洗い出してみた

これからレビューしていきます。

seansawyer/erlang_iso8601

URL

https://github.com/seansawyer/erlang_iso8601

dweldon/edate

URL

https://github.com/dweldon/edate

dmitryme/erlang_localtime

URL

https://github.com/dmitryme/erlang_localtime

gparrulli/date_util

URL

https://github.com/gparrulli/date_util

nisbus/erlang-dates

URL

https://github.com/nisbus/erlang-dates

lkiesow/erlang-datetime

URL

https://github.com/lkiesow/erlang-datetime

devinus/dateutils

URL

https://github.com/devinus/dateutils

strange/datestring

URL

https://github.com/strange/datestring

imrehorvath/iso_8601_erl

URL

https://github.com/imrehorvath/iso_8601_erl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment