date_tools 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/data/locales/ar.yml +47 -0
- data/data/locales/bg.yml +47 -0
- data/data/locales/ca.yml +47 -0
- data/data/locales/cs.yml +47 -0
- data/data/locales/da.yml +47 -0
- data/data/locales/de.yml +47 -0
- data/data/locales/de_at.yml +47 -0
- data/data/locales/de_ch.yml +47 -0
- data/data/locales/en.yml +47 -0
- data/data/locales/en_au.yml +47 -0
- data/data/locales/en_ca.yml +47 -0
- data/data/locales/en_gb.yml +47 -0
- data/data/locales/en_in.yml +47 -0
- data/data/locales/en_us.yml +47 -0
- data/data/locales/es.yml +47 -0
- data/data/locales/es_ar.yml +47 -0
- data/data/locales/es_cl.yml +47 -0
- data/data/locales/es_co.yml +47 -0
- data/data/locales/es_mx.yml +47 -0
- data/data/locales/es_pe.yml +47 -0
- data/data/locales/es_ve.yml +47 -0
- data/data/locales/fi.yml +47 -0
- data/data/locales/fr.yml +47 -0
- data/data/locales/fr_ca.yml +47 -0
- data/data/locales/fr_ch.yml +47 -0
- data/data/locales/it.yml +47 -0
- data/data/locales/it_ch.yml +47 -0
- data/data/locales/ko.yml +47 -0
- data/data/locales/lt.yml +47 -0
- data/data/locales/nl.yml +47 -0
- data/data/locales/nl_be.yml +47 -0
- data/data/locales/no.yml +47 -0
- data/data/locales/pt.yml +47 -0
- data/data/locales/pt_br.yml +47 -0
- data/data/locales/ru.yml +47 -0
- data/data/locales/se.yml +47 -0
- data/data/locales/sr.yml +47 -0
- data/data/locales/zh_TW.yml +47 -0
- data/examples/example_date_creator.rb +9 -1
- data/examples/example_date_i18n.rb +52 -0
- data/examples/example_date_locale.rb +18 -5
- data/examples/example_date_time_compare.rb +11 -2
- data/lib/date_tools.rb +93 -26
- data/lib/date_tools/date_locale.rb +126 -234
- data/lib/date_tools/date_time_compare.rb +3 -0
- data/unittest/test_date_creator.rb +1 -0
- data/unittest/test_date_locale.rb +103 -196
- data/unittest/test_date_locale_loaded.rb +113 -0
- data/unittest/test_date_time_compare.rb +1 -0
- data/unittest/test_date_tools.rb +13 -0
- metadata +90 -37
- data/readme.html +0 -68
- data/readme.txt +0 -50
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
en_ca:
|
3
|
+
date:
|
4
|
+
abbr_day_names:
|
5
|
+
- Sun
|
6
|
+
- Mon
|
7
|
+
- Tue
|
8
|
+
- Wed
|
9
|
+
- Thu
|
10
|
+
- Fri
|
11
|
+
- Sat
|
12
|
+
day_names:
|
13
|
+
- Sunday
|
14
|
+
- Monday
|
15
|
+
- Tuesday
|
16
|
+
- Wednesday
|
17
|
+
- Thursday
|
18
|
+
- Friday
|
19
|
+
- Saturday
|
20
|
+
abbr_month_names:
|
21
|
+
-
|
22
|
+
- Jan
|
23
|
+
- Feb
|
24
|
+
- Mar
|
25
|
+
- Apr
|
26
|
+
- May
|
27
|
+
- Jun
|
28
|
+
- Jul
|
29
|
+
- Aug
|
30
|
+
- Sep
|
31
|
+
- Oct
|
32
|
+
- Nov
|
33
|
+
- Dec
|
34
|
+
month_names:
|
35
|
+
-
|
36
|
+
- January
|
37
|
+
- February
|
38
|
+
- March
|
39
|
+
- April
|
40
|
+
- May
|
41
|
+
- June
|
42
|
+
- July
|
43
|
+
- August
|
44
|
+
- September
|
45
|
+
- October
|
46
|
+
- November
|
47
|
+
- December
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
en_gb:
|
3
|
+
date:
|
4
|
+
abbr_day_names:
|
5
|
+
- Sun
|
6
|
+
- Mon
|
7
|
+
- Tue
|
8
|
+
- Wed
|
9
|
+
- Thu
|
10
|
+
- Fri
|
11
|
+
- Sat
|
12
|
+
day_names:
|
13
|
+
- Sunday
|
14
|
+
- Monday
|
15
|
+
- Tuesday
|
16
|
+
- Wednesday
|
17
|
+
- Thursday
|
18
|
+
- Friday
|
19
|
+
- Saturday
|
20
|
+
abbr_month_names:
|
21
|
+
-
|
22
|
+
- Jan
|
23
|
+
- Feb
|
24
|
+
- Mar
|
25
|
+
- Apr
|
26
|
+
- May
|
27
|
+
- Jun
|
28
|
+
- Jul
|
29
|
+
- Aug
|
30
|
+
- Sep
|
31
|
+
- Oct
|
32
|
+
- Nov
|
33
|
+
- Dec
|
34
|
+
month_names:
|
35
|
+
-
|
36
|
+
- January
|
37
|
+
- February
|
38
|
+
- March
|
39
|
+
- April
|
40
|
+
- May
|
41
|
+
- June
|
42
|
+
- July
|
43
|
+
- August
|
44
|
+
- September
|
45
|
+
- October
|
46
|
+
- November
|
47
|
+
- December
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
en_in:
|
3
|
+
date:
|
4
|
+
abbr_day_names:
|
5
|
+
- Sun
|
6
|
+
- Mon
|
7
|
+
- Tue
|
8
|
+
- Wed
|
9
|
+
- Thu
|
10
|
+
- Fri
|
11
|
+
- Sat
|
12
|
+
day_names:
|
13
|
+
- Sunday
|
14
|
+
- Monday
|
15
|
+
- Tuesday
|
16
|
+
- Wednesday
|
17
|
+
- Thursday
|
18
|
+
- Friday
|
19
|
+
- Saturday
|
20
|
+
abbr_month_names:
|
21
|
+
-
|
22
|
+
- Jan
|
23
|
+
- Feb
|
24
|
+
- Mar
|
25
|
+
- Apr
|
26
|
+
- May
|
27
|
+
- Jun
|
28
|
+
- Jul
|
29
|
+
- Aug
|
30
|
+
- Sep
|
31
|
+
- Oct
|
32
|
+
- Nov
|
33
|
+
- Dec
|
34
|
+
month_names:
|
35
|
+
-
|
36
|
+
- January
|
37
|
+
- February
|
38
|
+
- March
|
39
|
+
- April
|
40
|
+
- May
|
41
|
+
- June
|
42
|
+
- July
|
43
|
+
- August
|
44
|
+
- September
|
45
|
+
- October
|
46
|
+
- November
|
47
|
+
- December
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
en_us:
|
3
|
+
date:
|
4
|
+
abbr_day_names:
|
5
|
+
- Sun
|
6
|
+
- Mon
|
7
|
+
- Tue
|
8
|
+
- Wed
|
9
|
+
- Thu
|
10
|
+
- Fri
|
11
|
+
- Sat
|
12
|
+
day_names:
|
13
|
+
- Sunday
|
14
|
+
- Monday
|
15
|
+
- Tuesday
|
16
|
+
- Wednesday
|
17
|
+
- Thursday
|
18
|
+
- Friday
|
19
|
+
- Saturday
|
20
|
+
abbr_month_names:
|
21
|
+
-
|
22
|
+
- Jan
|
23
|
+
- Feb
|
24
|
+
- Mar
|
25
|
+
- Apr
|
26
|
+
- May
|
27
|
+
- Jun
|
28
|
+
- Jul
|
29
|
+
- Aug
|
30
|
+
- Sep
|
31
|
+
- Oct
|
32
|
+
- Nov
|
33
|
+
- Dec
|
34
|
+
month_names:
|
35
|
+
-
|
36
|
+
- January
|
37
|
+
- February
|
38
|
+
- March
|
39
|
+
- April
|
40
|
+
- May
|
41
|
+
- June
|
42
|
+
- July
|
43
|
+
- August
|
44
|
+
- September
|
45
|
+
- October
|
46
|
+
- November
|
47
|
+
- December
|
data/data/locales/es.yml
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
es:
|
3
|
+
date:
|
4
|
+
abbr_day_names:
|
5
|
+
- dom
|
6
|
+
- lun
|
7
|
+
- mar
|
8
|
+
- mié
|
9
|
+
- jue
|
10
|
+
- vie
|
11
|
+
- sáb
|
12
|
+
day_names:
|
13
|
+
- domingo
|
14
|
+
- lunes
|
15
|
+
- martes
|
16
|
+
- miércoles
|
17
|
+
- jueves
|
18
|
+
- viernes
|
19
|
+
- sábado
|
20
|
+
abbr_month_names:
|
21
|
+
-
|
22
|
+
- ene
|
23
|
+
- feb
|
24
|
+
- mar
|
25
|
+
- abr
|
26
|
+
- may
|
27
|
+
- jun
|
28
|
+
- jul
|
29
|
+
- ago
|
30
|
+
- sep
|
31
|
+
- oct
|
32
|
+
- nov
|
33
|
+
- dic
|
34
|
+
month_names:
|
35
|
+
-
|
36
|
+
- enero
|
37
|
+
- febrero
|
38
|
+
- marzo
|
39
|
+
- abril
|
40
|
+
- mayo
|
41
|
+
- junio
|
42
|
+
- julio
|
43
|
+
- agosto
|
44
|
+
- septiembre
|
45
|
+
- octubre
|
46
|
+
- noviembre
|
47
|
+
- diciembre
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
es_ar:
|
3
|
+
date:
|
4
|
+
abbr_day_names:
|
5
|
+
- dom
|
6
|
+
- lun
|
7
|
+
- mar
|
8
|
+
- mié
|
9
|
+
- jue
|
10
|
+
- vie
|
11
|
+
- sáb
|
12
|
+
day_names:
|
13
|
+
- domingo
|
14
|
+
- lunes
|
15
|
+
- martes
|
16
|
+
- miércoles
|
17
|
+
- jueves
|
18
|
+
- viernes
|
19
|
+
- sábado
|
20
|
+
abbr_month_names:
|
21
|
+
-
|
22
|
+
- ene
|
23
|
+
- feb
|
24
|
+
- mar
|
25
|
+
- abr
|
26
|
+
- may
|
27
|
+
- jun
|
28
|
+
- jul
|
29
|
+
- ago
|
30
|
+
- sep
|
31
|
+
- oct
|
32
|
+
- nov
|
33
|
+
- dic
|
34
|
+
month_names:
|
35
|
+
-
|
36
|
+
- enero
|
37
|
+
- febrero
|
38
|
+
- marzo
|
39
|
+
- abril
|
40
|
+
- mayo
|
41
|
+
- junio
|
42
|
+
- julio
|
43
|
+
- agosto
|
44
|
+
- septiembre
|
45
|
+
- octubre
|
46
|
+
- noviembre
|
47
|
+
- diciembre
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
es_cl:
|
3
|
+
date:
|
4
|
+
abbr_day_names:
|
5
|
+
- dom
|
6
|
+
- lun
|
7
|
+
- mar
|
8
|
+
- mié
|
9
|
+
- jue
|
10
|
+
- vie
|
11
|
+
- sáb
|
12
|
+
day_names:
|
13
|
+
- domingo
|
14
|
+
- lunes
|
15
|
+
- martes
|
16
|
+
- miércoles
|
17
|
+
- jueves
|
18
|
+
- viernes
|
19
|
+
- sábado
|
20
|
+
abbr_month_names:
|
21
|
+
-
|
22
|
+
- ene
|
23
|
+
- feb
|
24
|
+
- mar
|
25
|
+
- abr
|
26
|
+
- may
|
27
|
+
- jun
|
28
|
+
- jul
|
29
|
+
- ago
|
30
|
+
- sep
|
31
|
+
- oct
|
32
|
+
- nov
|
33
|
+
- dic
|
34
|
+
month_names:
|
35
|
+
-
|
36
|
+
- enero
|
37
|
+
- febrero
|
38
|
+
- marzo
|
39
|
+
- abril
|
40
|
+
- mayo
|
41
|
+
- junio
|
42
|
+
- julio
|
43
|
+
- agosto
|
44
|
+
- septiembre
|
45
|
+
- octubre
|
46
|
+
- noviembre
|
47
|
+
- diciembre
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
es_co:
|
3
|
+
date:
|
4
|
+
abbr_day_names:
|
5
|
+
- dom
|
6
|
+
- lun
|
7
|
+
- mar
|
8
|
+
- mié
|
9
|
+
- jue
|
10
|
+
- vie
|
11
|
+
- sáb
|
12
|
+
day_names:
|
13
|
+
- domingo
|
14
|
+
- lunes
|
15
|
+
- martes
|
16
|
+
- miércoles
|
17
|
+
- jueves
|
18
|
+
- viernes
|
19
|
+
- sábado
|
20
|
+
abbr_month_names:
|
21
|
+
-
|
22
|
+
- ene
|
23
|
+
- feb
|
24
|
+
- mar
|
25
|
+
- abr
|
26
|
+
- may
|
27
|
+
- jun
|
28
|
+
- jul
|
29
|
+
- ago
|
30
|
+
- sep
|
31
|
+
- oct
|
32
|
+
- nov
|
33
|
+
- dic
|
34
|
+
month_names:
|
35
|
+
-
|
36
|
+
- enero
|
37
|
+
- febrero
|
38
|
+
- marzo
|
39
|
+
- abril
|
40
|
+
- mayo
|
41
|
+
- junio
|
42
|
+
- julio
|
43
|
+
- agosto
|
44
|
+
- septiembre
|
45
|
+
- octubre
|
46
|
+
- noviembre
|
47
|
+
- diciembre
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
es_mx:
|
3
|
+
date:
|
4
|
+
abbr_day_names:
|
5
|
+
- dom
|
6
|
+
- lun
|
7
|
+
- mar
|
8
|
+
- mié
|
9
|
+
- jue
|
10
|
+
- vie
|
11
|
+
- sáb
|
12
|
+
day_names:
|
13
|
+
- domingo
|
14
|
+
- lunes
|
15
|
+
- martes
|
16
|
+
- miércoles
|
17
|
+
- jueves
|
18
|
+
- viernes
|
19
|
+
- sábado
|
20
|
+
abbr_month_names:
|
21
|
+
-
|
22
|
+
- ene
|
23
|
+
- feb
|
24
|
+
- mar
|
25
|
+
- abr
|
26
|
+
- may
|
27
|
+
- jun
|
28
|
+
- jul
|
29
|
+
- ago
|
30
|
+
- sep
|
31
|
+
- oct
|
32
|
+
- nov
|
33
|
+
- dic
|
34
|
+
month_names:
|
35
|
+
-
|
36
|
+
- enero
|
37
|
+
- febrero
|
38
|
+
- marzo
|
39
|
+
- abril
|
40
|
+
- mayo
|
41
|
+
- junio
|
42
|
+
- julio
|
43
|
+
- agosto
|
44
|
+
- septiembre
|
45
|
+
- octubre
|
46
|
+
- noviembre
|
47
|
+
- diciembre
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
es_pe:
|
3
|
+
date:
|
4
|
+
abbr_day_names:
|
5
|
+
- dom
|
6
|
+
- lun
|
7
|
+
- mar
|
8
|
+
- mié
|
9
|
+
- jue
|
10
|
+
- vie
|
11
|
+
- sáb
|
12
|
+
day_names:
|
13
|
+
- domingo
|
14
|
+
- lunes
|
15
|
+
- martes
|
16
|
+
- miércoles
|
17
|
+
- jueves
|
18
|
+
- viernes
|
19
|
+
- sábado
|
20
|
+
abbr_month_names:
|
21
|
+
-
|
22
|
+
- ene
|
23
|
+
- feb
|
24
|
+
- mar
|
25
|
+
- abr
|
26
|
+
- may
|
27
|
+
- jun
|
28
|
+
- jul
|
29
|
+
- ago
|
30
|
+
- sep
|
31
|
+
- oct
|
32
|
+
- nov
|
33
|
+
- dic
|
34
|
+
month_names:
|
35
|
+
-
|
36
|
+
- enero
|
37
|
+
- febrero
|
38
|
+
- marzo
|
39
|
+
- abril
|
40
|
+
- mayo
|
41
|
+
- junio
|
42
|
+
- julio
|
43
|
+
- agosto
|
44
|
+
- septiembre
|
45
|
+
- octubre
|
46
|
+
- noviembre
|
47
|
+
- diciembre
|