forked from johannesgerer/jburkardt-f
-
Notifications
You must be signed in to change notification settings - Fork 1
/
calpak.html
2167 lines (2132 loc) · 72.4 KB
/
calpak.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<html>
<head>
<title>
CALPAK - Calendar Calculations
</title>
</head>
<body bgcolor="#EEEEEE" link="#CC0000" alink="#FF3300" vlink="#000055">
<h1 align = "center">
CALPAK <br> Calendar Calculations
</h1>
<hr>
<p>
<b>CALPAK</b>
is a FORTRAN90 library which
computes various simple calendrical quantities.
</p>
<p>
These include converting
from day-number/year to day/month/year format, calculating the time
difference between two dates, finding the day of the week of a given date,
and other feats.
</p>
<p>
Some common methods of marking the date include:
<ul>
<li>
<b>JED</b>, the Julian Ephemeris Date, a count of days since
a long time ago;
</li>
<li>
<b>YMD</b>, for "year, month, day";
</li>
<li>
<b>YJ</b>, for "year, day number".
</li>
</ul>
</p>
<p>
While there have been many calendars over the years, it
is instructive to contemplate just the crazy story of our
current "common" calendar. To this day, people disagree about
whether there was a year 0, although the Julian calendar
was a Roman invention, and Dionysius Exiguus, who gets the
blame for shifting the Julian calendar's starting date to
the birth year of Christ four hundred years afterwards, didn't
have an accurate idea of when that was.
</p>
<p>
There was a
controversial shift from the Julian to the Gregorian calendar,
which took place <i>piecemeal</i> throughout the Catholic
world, with several countries actually switching back and
forth more than once, and with England holding out on the
old system until after George Washington was born (which
means he was born on February 11 AND February 22).
</p>
<p>
People didn't agree on when the year started, so that January and
February, in particular, were a little murky about which
year they belonged to, and the year sometimes started
around March 22, near the vernal equinox.
</p>
<p>
There are a number of side issues, including
<ul>
<li>
determining the day of the week of a given date;
</li>
<li>
determining the number of days between two dates;
</li>
<li>
the computation of the date of certain holidays;
</li>
</ul>
</p>
<h3 align = "center">
Licensing:
</h3>
<p>
The computer code and data files described and made available on this web page
are distributed under
<a href = "../../txt/gnu_lgpl.txt">the GNU LGPL license.</a>
</p>
<h3 align = "center">
Languages:
</h3>
<p>
<b>CALPAK</b> is available in
<a href = "../../cpp_src/calpak/calpak.html">a C++ version</a> and
<a href = "../../f_src/calpak/calpak.html">a FORTRAN90 version</a> and
<a href = "../../m_src/calpak/calpak.html">a MATLAB version</a>.
</p>
<h3 align = "center">
Related Data and Programs:
</h3>
<p>
<a href = "../../f_src/calendar_nyt/calendar_nyt.html">
CALENDAR_NYT</a>,
a FORTRAN90 library which
shows the correspondence between dates and the New York Times volume and
issue number;
</p>
<p>
<a href = "../../cpp_src/calendar_rd/calendar_rd.html">
CALENDAR_RD</a>,
a C++ program which
computes the representation of a given date in a
number of calendrical systems,
by Edward Reingold and Nachum Dershowitz
</p>
<p>
<a href = "../../datasets/dates/dates.html">
DATES</a>,
a dataset directory which
contains lists of dates in various calendar systems.
</p>
<p>
<a href = "../../f_src/doomsday/doomsday.html">
DOOMSDAY</a>,
a FORTRAN90 library which
is given the year, month and day of a date, and uses
John Conway's doomsday algorithm to determine the corresponding day of the week.
</p>
<p>
<a href = "../../f_src/weekday/weekday.html">
WEEKDAY</a>,
a FORTRAN90 library which
determines the day of the week for a given day.
</p>
<h3 align = "center">
Reference:
</h3>
<p>
<ol>
<li>
Anonymous,<br>
A Correction; Welcome to 51,254,<br>
The New York Times,<br>
01 January 2000, Volume 149, Issue 51254.
</li>
<li>
James Barron,<br>
What's in a Number? 143 Years of News,<br>
The New York Times,<br>
14 March 1995, Volume 144, Issue 50000.
</li>
<li>
Bonnie Blackburn, Leofranc Holford-Stevens,<br>
The Oxford Companion to the Year,<br>
Oxford, 1999,<br>
ISBN: 0192142313,<br>
LC: CE73.B553.
</li>
<li>
Lewis Carroll (Charles Dodgson),<br>
To Find the Day of the Week for Any Given Date,<br>
Nature, 31 March 1887.
</li>
<li>
John Conway,<br>
Tomorrow is the Day After Doomsday,<br>
Eureka,<br>
Volume 36, October 1973, pages 28-31.
</li>
<li>
Peter Duffett-Smith,<br>
Practical Astronomy With Your Calculator,<br>
Third Edition,<br>
Cambridge University Press, 1996,<br>
ISBN: 0-521-35699-7,<br>
LC: QB62.5.D83.
</li>
<li>
Donald Knuth,<br>
The Art of Computer Programming,<br>
Volume 1, Fundamental Algorithms,<br>
Third Edition,<br>
Addison-Wesley, 1997,<br>
ISBN: 0201896834,<br>
LC: QA76.6.K64.
</li>
<li>
Donald Knuth,<br>
The Calculation of Easter,<br>
Communications of the ACM,<br>
Volume 5, Number 4, April 1962, pages 209-210.
</li>
<li>
Gary Meisters,<br>
Lewis Carroll's Day-of-the-Week Algorithm,<br>
Math Horizons,<br>
November 2002, pages 24-25.
</li>
<li>
Lance Latham,<br>
Standard C Date/Time Library,<br>
Programming the World's Calendars and Clocks,<br>
Miller Freeman, 1998,<br>
ISBN: 0-87930-496-0.
</li>
<li>
The New York Times,<br>
Page One, 1896-1996, A Special Commemorative Edition Celebrating the
100th Anniversary of the Purchase of the New York Times by Adolph S Ochs,<br>
Galahad Books, 1996,<br>
ISBN: 0-88365-961-1,<br>
LC: D411.P25.
</li>
<li>
The New York Times,<br>
The Complete First Pages, 1851-2008,<br>
Black Dog & Leventhal Publishers, 2008,<br>
ISBN13: 978-1-57912-749-7,<br>
LC: D351.N53.
</li>
<li>
Thomas OBeirne,<br>
Puzzles and Paradoxes,<br>
Oxford University Press, 1965,<br>
LC: QA95.O2.
</li>
<li>
Frank Parise, editor,<br>
The Book of Calendars,<br>
Gorgias, 2002,<br>
ISBN: 1931956766,<br>
LC: CE11.K4.
</li>
<li>
William Press, Brian Flannery, Saul Teukolsky, William Vetterling,<br>
Numerical Recipes in FORTRAN: The Art of Scientific Computing,<br>
Second Edition,<br>
Cambridge University Press, 1992,<br>
ISBN: 0-521-43064-X,<br>
LC: QA297.N866.
</li>
<li>
Edward Reingold, Nachum Dershowitz,<br>
Calendrical Calculations: The Millennium Edition,<br>
Cambridge University Press, 2001,<br>
ISBN: 0-521-77752-6,<br>
LC: CE12.R45.
</li>
<li>
Edward Reingold, Nachum Dershowitz,<br>
Calendrical Calculations I,<br>
Software - Practice and Experience,<br>
Volume 20, Number 9, September 1990, pages 899-928.<br>
</li>
<li>
Edward Reingold, Nachum Dershowitz, Stewart Clamen,<br>
Calendrical Calculations, II: Three Historical Calendars,<br>
Software - Practice and Experience,<br>
Volume 23, Number 4, pages 383-404, April 1993.
</li>
<li>
Edward Richards,<br>
Mapping Time, The Calendar and Its History,<br>
Oxford, 1999,<br>
ISBN: 0-19-850413-6,<br>
LC: CE11.R5.
</li>
<li>
Ian Stewart,<br>
Easter is a Quasicrystal,<br>
Scientific American,<br>
Volume 284, Number 3, March 2001, pages 80-83.
</li>
<li>
Daniel Zwillinger, editor,<br>
CRC Standard Mathematical Tables and Formulae,<br>
30th Edition,<br>
CRC Press, 1996,<br>
ISBN: 0-8493-2479-3,<br>
LC: QA47.M315.
</li>
</ol>
</p>
<h3 align = "center">
Source Code:
</h3>
<p>
<ul>
<li>
<a href = "calpak.f90">calpak.f90</a>, the source code;
</li>
<li>
<a href = "calpak.sh">calpak.sh</a>,
commands to compile the source code;
</li>
</ul>
</p>
<h3 align = "center">
Examples and Tests:
</h3>
<p>
<ul>
<li>
<a href = "calpak_prb.f90">calpak_prb.f90</a>, the calling program;
</li>
<li>
<a href = "calpak_prb.sh">calpak_prb.sh</a>,
commands to compile, link and run the calling program;
</li>
<li>
<a href = "calpak_prb_output.txt">calpak_prb_output.txt</a>,
the output file.
</li>
</ul>
</p>
<h3 align = "center">
List of Routines:
</h3>
<p>
<ul>
<li>
<b>CH_CAP</b> capitalizes a single character.
</li>
<li>
<b>CWS_TO_JED_GPS</b> converts a GPS CWS date to a JED.
</li>
<li>
<b>CWS_TO_S_GPS</b> writes a GPS CWS date into a string.
</li>
<li>
<b>DATENUM_TO_JED</b> converts a MATLAB date number to a JED.
</li>
<li>
<b>DAY_BORROW_ALEXANDRIAN</b> borrows days from months in an Alexandrian date.
</li>
<li>
<b>DAY_BORROW_COMMON</b> borrows days from months in a Common date.
</li>
<li>
<b>DAY_BORROW_EG_CIVIL</b> borrows days from months in an Egyptian Civil date.
</li>
<li>
<b>DAY_BORROW_ENGLISH</b> borrows days from months in an English date.
</li>
<li>
<b>DAY_BORROW_GREGORIAN</b> borrows days from months in a Gregorian date.
</li>
<li>
<b>DAY_BORROW_HEBREW</b> borrows days from months in a Hebrew date.
</li>
<li>
<b>DAY_BORROW_ISLAMIC</b> borrows days from months in an Islamic date.
</li>
<li>
<b>DAY_BORROW_JULIAN</b> borrows days from months in a Julian date.
</li>
<li>
<b>DAY_BORROW_REPUBLICAN</b> borrows days from months in a Republican date.
</li>
<li>
<b>DAY_BORROW_ROMAN</b> borrows days from months in a Roman date.
</li>
<li>
<b>DAY_CARRY_ALEXANDRIAN</b> carries days to months in an Alexandrian date.
</li>
<li>
<b>DAY_CARRY_COMMON</b> carries days to months in a Common date.
</li>
<li>
<b>DAY_CARRY_EG_CIVIL</b> carries days to months in an Egyptian Civil date.
</li>
<li>
<b>DAY_CARRY_ENGLISH</b> carries days to months in an English date.
</li>
<li>
<b>DAY_CARRY_GREGORIAN</b> carries days to months in a Gregorian date.
</li>
<li>
<b>DAY_CARRY_HEBREW</b> carries days to months in a Hebrew date.
</li>
<li>
<b>DAY_CARRY_ISLAMIC</b> carries days to months in an Islamic date.
</li>
<li>
<b>DAY_CARRY_JULIAN</b> carries days to months in a Julian date.
</li>
<li>
<b>DAY_CARRY_REPUBLICAN</b> carries days to months in a Republican date.
</li>
<li>
<b>DAY_CARRY_ROMAN</b> carries days to months in a Roman date.
</li>
<li>
<b>DAY_LIST_COMMON</b> prints a list of days between two dates.
</li>
<li>
<b>DAYS_BEFORE_MONTH_COMMON</b> returns the number of days before a Common month.
</li>
<li>
<b>DAYS_BEFORE_MONTH_GREGORIAN:</b> number of days before a Gregorian month.
</li>
<li>
<b>DAYS_BEFORE_MONTH_JULIAN</b> returns the number of days before a Julian month.
</li>
<li>
<b>DEFLATE_COMMON</b> "deflates" dates in the Common Calendar transition month.
</li>
<li>
<b>DEFLATE_ENGLISH</b> "deflates" dates in the English Calendar transition month.
</li>
<li>
<b>DIGIT_TO_CH</b> returns the character representation of a decimal digit.
</li>
<li>
<b>EASTER_DS</b> computes the month and day of Easter for a Gregorian year.
</li>
<li>
<b>EASTER_EGR</b> computes the month and day of Easter for a Common year.
</li>
<li>
<b>EASTER_EGR2</b> computes the month and day of Easter for a Common year.
</li>
<li>
<b>EASTER_JULIAN</b> computes the date of Easter in the Julian calendar.
</li>
<li>
<b>EASTER_JULIAN2</b> computes the date of Easter in the Julian calendar.
</li>
<li>
<b>EASTER_KNUTH</b> computes the month and day of Easter for a Gregorian year.
</li>
<li>
<b>EASTER_STEWART</b> computes the month and day of Easter for a Gregorian year.
</li>
<li>
<b>EPOCH_TO_JED_AKBAR</b> returns the epoch of the Akbar calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_ALEXANDRIAN:</b> epoch of the Alexandrian calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_ARMENIAN</b> returns the epoch of the Armenian calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_BAHAI</b> returns the epoch of the Bahai calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_BESSEL</b> returns the epoch of the Bessel calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_CHINESE</b> returns the epoch of the Chinese calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_COMMON</b> returns the epoch of the Common calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_COPTIC</b> returns the epoch of the Coptic calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_DECCAN</b> returns the epoch of the Fasli Deccan calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_EG_CIVIL:</b> epoch of the Egyptian Civil calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_EG_LUNAR:</b> epoch of the Egyptian Lunar calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_ENGLISH</b> returns the epoch of the English calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_ETHIOPIAN</b> returns the epoch of the Ethiopian calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_GPS</b> returns the epoch of the GPS calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_GREEK</b> returns the epoch of the Greek calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_GREGORIAN</b> returns the epoch of the Gregorian calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_HEBREW</b> returns the epoch of the Hebrew calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_HINDU_LUNAR:</b> epoch of the Hindu lunar calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_HINDU_SOLAR:</b> epoch of the Hindu solar calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_ISLAMIC_A</b> returns the epoch of the Islamic A calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_ISLAMIC_B</b> returns the epoch of the Islamic B calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_JED</b> returns the epoch of the JED as a JED.
</li>
<li>
<b>EPOCH_TO_JED_JELALI</b> returns the epoch of the Jelali calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_JULIAN</b> returns the epoch of the Julian calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_KHWARIZMIAN:</b> epoch of the Khwarizmian calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_MACEDONIAN:</b> epoch of the Macedonian calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_MATLAB:</b> epoch of the "MATLAB calendar" as a JED.
</li>
<li>
<b>EPOCH_TO_JED_MAYAN_LONG:</b> epoch of the Mayan long count calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_MJD</b> returns the epoch of the MJD calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_NYT</b> returns the epoch of the NYT calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_PERSIAN</b> returns the epoch of the Persian calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_PERSIAN_SOLAR:</b> epoch of the Persian solar calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_RD</b> returns the epoch of the RD calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_REPUBLICAN:</b> epoch of the Republican calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_ROMAN</b> returns the epoch of the Roman calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_SAKA</b> returns the epoch of the Saka calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_SOOR_SAN:</b> epoch of the Fasli Soor San calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_SYRIAN</b> returns the epoch of the Syrian calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_UNIX</b> returns the epoch of the UNIX calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_Y2K</b> returns the epoch of the Y2K calendar as a JED.
</li>
<li>
<b>EPOCH_TO_JED_ZOROASTRIAN:</b> epoch of the Zoroastrian calendar as a JED.
</li>
<li>
<b>FRAC_BORROW_COMMON</b> borrows fractions from days in a Common YMDF date.
</li>
<li>
<b>FRAC_BORROW_ENGLISH</b> borrows fractions from days in an English YMDF date.
</li>
<li>
<b>FRAC_BORROW_GREGORIAN</b> borrows fractions from days in a Gregorian YMDF date.
</li>
<li>
<b>FRAC_BORROW_HEBREW</b> borrows fractions from days in a Hebrew YMDF date.
</li>
<li>
<b>FRAC_BORROW_ISLAMIC</b> borrows fractions from days in an Islamic YMDF date.
</li>
<li>
<b>FRAC_BORROW_JULIAN</b> borrows fractions from days in a Julian YMDF date.
</li>
<li>
<b>FRAC_BORROW_REPUBLICAN</b> borrows fractions from days in a Republican YMDF date.
</li>
<li>
<b>FRAC_BORROW_ROMAN</b> borrows fractions from days in a Roman YMDF date.
</li>
<li>
<b>FRAC_CARRY_COMMON</b> carries fractions to days in a Common YMDF date.
</li>
<li>
<b>FRAC_CARRY_ENGLISH</b> carries fractions to days in an English YMDF date.
</li>
<li>
<b>FRAC_CARRY_GREGORIAN</b> carries fractions from days in a Gregorian YMDF date.
</li>
<li>
<b>FRAC_CARRY_HEBREW</b> carries fractions from days in a Hebrew YMDF date.
</li>
<li>
<b>FRAC_CARRY_ISLAMIC</b> carries fractions from days in an Islamic YMDF date.
</li>
<li>
<b>FRAC_CARRY_JULIAN</b> carries fractions from days in a Julian YMDF date.
</li>
<li>
<b>FRAC_CARRY_REPUBLICAN</b> carries fractions from days in a Republican YMDF date.
</li>
<li>
<b>FRAC_CARRY_ROMAN</b> carries fractions to days in a Roman YMDF date.
</li>
<li>
<b>FRAC_TO_HMS</b> converts a fractional day into hours, minutes, seconds.
</li>
<li>
<b>FRAC_TO_S</b> writes a positive fraction into a left justified character string.
</li>
<li>
<b>HMS_TO_S</b> "prints" an HMS date into a string.
</li>
<li>
<b>HOUR_BORROW_COMMON</b> "borrows" a day of hours.
</li>
<li>
<b>HOUR_CARRY_COMMON</b> is given a YMDH date, and carries hours to days.
</li>
<li>
<b>I4_MODP</b> returns the positive remainder when I is divided by J.
</li>
<li>
<b>I4_SWAP</b> swaps two integers.
</li>
<li>
<b>I4_TO_A</b> returns the I-th alphabetic character.
</li>
<li>
<b>I4_TO_ROMAN</b> converts an integer to a string of Roman numerals.
</li>
<li>
<b>I4_TO_S_LEFT</b> converts an integer to a left-justified string.
</li>
<li>
<b>I4_TO_S_ZERO</b> converts an integer to a string, with zero padding.
</li>
<li>
<b>I4_WRAP</b> forces an integer to lie between given limits by wrapping.
</li>
<li>
<b>INFLATE_COMMON</b> "inflates" dates in the Common Calendar transition month.
</li>
<li>
<b>INFLATE_ENGLISH</b> "inflates" dates in the English Calendar transition month.
</li>
<li>
<b>J_BORROW_COMMON</b> borrows year-days from years in a Common date.
</li>
<li>
<b>J_BORROW_ENGLISH</b> borrows year-days from years in an English date.
</li>
<li>
<b>J_BORROW_GREGORIAN</b> borrows year-days from years in a Gregorian date.
</li>
<li>
<b>J_BORROW_HEBREW</b> borrows year-days from years in a Hebrew date.
</li>
<li>
<b>J_BORROW_ISLAMIC</b> borrows year-days from years in an Islamic date.
</li>
<li>
<b>J_BORROW_JULIAN</b> borrows year-days from years in a Julian date.
</li>
<li>
<b>J_BORROW_REPUBLICAN</b> borrows year-days from years in a Republican date.
</li>
<li>
<b>J_BORROW_ROMAN</b> borrows year-days from years in a Roman date.
</li>
<li>
<b>J_CARRY_COMMON</b> carries year-days to years in a Common date.
</li>
<li>
<b>J_CARRY_ENGLISH</b> carries year-days to years in an English date.
</li>
<li>
<b>J_CARRY_GREGORIAN</b> carries year-days to years in a Gregorian date.
</li>
<li>
<b>J_CARRY_HEBREW</b> carries year-days to years in a Hebrew date.
</li>
<li>
<b>J_CARRY_ISLAMIC</b> carries year-days to years in an Islamic date.
</li>
<li>
<b>J_CARRY_JULIAN</b> carries year-days to years in a Julian date.
</li>
<li>
<b>J_CARRY_REPUBLICAN</b> carries year-days to years in a Republican date.
</li>
<li>
<b>J_CARRY_ROMAN</b> carries year-days to years in a Roman date.
</li>
<li>
<b>JED_CHECK</b> checks a Julian Ephemeris Date.
</li>
<li>
<b>JED_TEST</b> returns some "interesting" JED's.
</li>
<li>
<b>JED_TO_CWS_GPS</b> converts a JED to a GPS CWS date.
</li>
<li>
<b>JED_TO_DATENUM</b> converts a JED to a MATLAB date number.
</li>
<li>
<b>JED_TO_MAYAN_LONG</b> converts a JED to a Mayan long count date.
</li>
<li>
<b>JED_TO_MAYAN_ROUND</b> converts a JED to a Mayan round date.
</li>
<li>
<b>JED_TO_MJD</b> converts a JED to a modified JED.
</li>
<li>
<b>JED_TO_NEAREST_NOON</b> converts a JED to the JED of the nearest noon.
</li>
<li>
<b>JED_TO_NEXT_NOON</b> converts a JED to the JED of the next noon.
</li>
<li>
<b>JED_TO_NYT</b> converts a JED to an NYT date.
</li>
<li>
<b>JED_TO_RD</b> converts a JED to an RD.
</li>
<li>
<b>JED_TO_SS_UNIX</b> converts a JED to a UNIX SS date.
</li>
<li>
<b>JED_TO_WEEKDAY</b> computes the day of the week from a JED.
</li>
<li>
<b>JED_TO_YEAR_HEBREW:</b> the year in the Hebrew calendar when a JED occurred.
</li>
<li>
<b>JED_TO_YEARCOUNT_BESSEL</b> converts a JED to Bessel year count.
</li>
<li>
<b>JED_TO_YEARCOUNT_JULIAN</b> converts a JED to a Julian year count.
</li>
<li>
<b>JED_TO_YJF_COMMON</b> converts a JED to a Common YJF date.
</li>
<li>
<b>JED_TO_YJF_ENGLISH</b> converts a JED to an English YJF date.
</li>
<li>
<b>JED_TO_YJF_GREGORIAN</b> converts a JED to a Gregorian YJF date.
</li>
<li>
<b>JED_TO_YJF_HEBREW</b> converts a JED to a Hebrew YJF date.
</li>
<li>
<b>JED_TO_YJF_ISLAMIC_A</b> converts a JED to an Islamic-A YJF date.
</li>
<li>
<b>JED_TO_YJF_ISLAMIC_B</b> converts a JED to an Islamic-B YJF date.
</li>
<li>
<b>JED_TO_YJF_JULIAN</b> converts a JED to a Julian YJF date.
</li>
<li>
<b>JED_TO_YJF_REPUBLICAN</b> converts a JED to a Republican YJF date.
</li>
<li>
<b>JED_TO_YJF_ROMAN</b> converts a JED to a Roman YJF date.
</li>
<li>
<b>JED_TO_YMDF_ALEXANDRIAN</b> converts a JED to an Alexandrian YMDF date.
</li>
<li>
<b>JED_TO_YMDF_ARMENIAN</b> converts a JED to an Armenian YMDF date.
</li>
<li>
<b>JED_TO_YMDF_BAHAI</b> converts a JED to a Bahai YMDF date.
</li>
<li>
<b>JED_TO_YMDF_COMMON</b> converts a JED to a Common YMDF date.
</li>
<li>
<b>JED_TO_YMDF_COPTIC</b> converts a JED to a Coptic YMDF date.
</li>
<li>
<b>JED_TO_YMDF_EG_CIVIL</b> converts a JED to an Egyptian Civil YMDF date.
</li>
<li>
<b>JED_TO_YMDF_EG_LUNAR</b> converts a JED to an Egyptian Lunar YMDF date.
</li>
<li>
<b>JED_TO_YMDF_ENGLISH</b> converts a JED to an English YMDF date.
</li>
<li>
<b>JED_TO_YMDF_ETHIOPIAN</b> converts a JED to an Ethiopian YMDF date.
</li>
<li>
<b>JED_TO_YMDF_GREGORIAN</b> converts a JED to a Gregorian YMDF date.
</li>
<li>
<b>JED_TO_YMDF_GREGORIAN2</b> converts a JED to a Gregorian YMDF date.
</li>
<li>
<b>JED_TO_YMDF_HEBREW</b> converts a JED to a Hebrew YMDF date.
</li>
<li>
<b>JED_TO_YMDF_HINDU_SOLAR</b> converts a JED to a Hindu solar YMDF date.
</li>
<li>
<b>JED_TO_YMDF_ISLAMIC_A</b> converts a JED to an Islamic A YMDF date.
</li>
<li>
<b>JED_TO_YMDF_ISLAMIC_B</b> converts a JED to an Islamic B YMDF date.
</li>
<li>
<b>JED_TO_YMDF_JELALI</b> converts a JED to a Jelali YMDF date.
</li>
<li>
<b>JED_TO_YMDF_JULIAN</b> converts a JED to a Julian YMDF date.
</li>
<li>
<b>JED_TO_YMDF_JULIAN2</b> converts a JED to a Julian YMDF date.
</li>
<li>
<b>JED_TO_YMDF_JULIAN3</b> converts a JED to a Julian YMDF date.
</li>
<li>
<b>JED_TO_YMDF_KHWARIZMIAN</b> converts a JED to a Khwarizmian YMDF date.
</li>
<li>
<b>JED_TO_YMDF_MACEDONIAN</b> converts a JED to a Macedonian YMDF date.
</li>
<li>
<b>JED_TO_YMDF_PERSIAN</b> converts a JED to a Persian YMDF date.
</li>
<li>
<b>JED_TO_YMDF_REPUBLICAN</b> converts a JED to a Republican YMDF date.
</li>
<li>
<b>JED_TO_YMDF_ROMAN</b> converts a JED to a Roman YMDF date.
</li>
<li>
<b>JED_TO_YMDF_SAKA</b> converts a JED to a Saka YMDF date.
</li>
<li>
<b>JED_TO_YMDF_SOOR_SAN</b> converts a JED to a Soor San YMDF date.
</li>
<li>
<b>JED_TO_YMDF_SYRIAN</b> converts a JED to a Syrian YMDF date.
</li>
<li>
<b>JED_TO_YMDF_ZOROASTRIAN</b> converts a JED to a Zoroastrian YMDF date.
</li>
<li>
<b>JED_TO_YMDHMS_COMMON</b> converts a JED to a Common YMDHMS date.
</li>
<li>
<b>LOWER</b> returns a lowercase version of a string.
</li>
<li>
<b>MAYAN_LONG_TO_JED</b> converts a Mayan long date to a JED.
</li>
<li>
<b>MAYAN_ROUND_TO_JED</b> converts a Mayan round date to a JED.
</li>
<li>
<b>MINUTE_BORROW_COMMON</b> "borrows" an hour of minutes in a Common date.
</li>
<li>
<b>MINUTE_CARRY_COMMON:</b> given a Common YMDHMS date, carries minutes to hours.
</li>
<li>
<b>MJD_TO_JED</b> converts a modified JED to a JED.
</li>
<li>
<b>MONTH_BORROW_ALEXANDRIAN</b> borrows a year of months on Alexandrian calendar.
</li>
<li>
<b>MONTH_BORROW_BAHAI</b> borrows a year of months on the Bahai calendar.
</li>
<li>
<b>MONTH_BORROW_COMMON</b> borrows a year of months on the Common calendar.
</li>
<li>
<b>MONTH_BORROW_EG_CIVIL</b> borrows a year of months on Egyptian Civil calendar.
</li>
<li>
<b>MONTH_BORROW_ENGLISH</b> borrows a year of months on the English calendar.
</li>
<li>
<b>MONTH_BORROW_GREGORIAN</b> borrows a year of months on the Gregorian calendar.
</li>
<li>
<b>MONTH_BORROW_HEBREW</b> borrows a year of months on the Hebrew calendar.
</li>
<li>
<b>MONTH_BORROW_ISLAMIC</b> borrows a year of months on the Islamic calendar.
</li>
<li>
<b>MONTH_BORROW_JULIAN</b> borrows a year of months on the Julian calendar.
</li>
<li>
<b>MONTH_BORROW_REPUBLICAN</b> borrows a year of months on the Republican calendar.
</li>
<li>
<b>MONTH_BORROW_ROMAN</b> borrows a year of months on the Roman calendar.
</li>
<li>
<b>MONTH_CAL_COMMON</b> prints a Common month calendar.
</li>
<li>
<b>MONTH_CAL_ENGLISH</b> prints an English month calendar.
</li>
<li>
<b>MONTH_CAL_GREGORIAN</b> prints a Gregorian month calendar.
</li>
<li>
<b>MONTH_CAL_HEBREW</b> prints a Hebrew month calendar.
</li>
<li>
<b>MONTH_CAL_ISLAMIC_A</b> prints an Islamic-A month calendar.
</li>
<li>
<b>MONTH_CAL_JULIAN</b> prints a Julian month calendar.
</li>
<li>
<b>MONTH_CAL_REPUBLICAN</b> prints a Republican month calendar.
</li>
<li>
<b>MONTH_CAL_ROMAN</b> prints a Roman month calendar.
</li>
<li>
<b>MONTH_CAL_STORE_COMMON</b> stores a Common month calendar.
</li>
<li>
<b>MONTH_CARRY_ALEXANDRIAN</b> carries a year of months on the Alexandrian calendar.
</li>
<li>
<b>MONTH_CARRY_BAHAI</b> carries a year of months on the Bahai calendar.
</li>
<li>
<b>MONTH_CARRY_COMMON</b> carries a year of months on the Common calendar.
</li>
<li>
<b>MONTH_CARRY_EG_CIVIL</b> carries a year of months on the Egyptian Civil calendar.
</li>
<li>
<b>MONTH_CARRY_ENGLISH</b> carries a year of months on the English calendar.
</li>
<li>
<b>MONTH_CARRY_GREGORIAN</b> carries a year of months on the Gregorian calendar.
</li>
<li>
<b>MONTH_CARRY_HEBREW</b> carries a year of months on the Hebrew calendar.
</li>
<li>
<b>MONTH_CARRY_ISLAMIC</b> carries a year of months on the Islamic calendar.
</li>
<li>
<b>MONTH_CARRY_JULIAN</b> carries a year of months on the Julian calendar.
</li>
<li>
<b>MONTH_CARRY_REPUBLICAN</b> carries a year of months on the Republican calendar.
</li>
<li>
<b>MONTH_CARRY_ROMAN</b> carries a year of months on the Roman calendar.
</li>
<li>
<b>MONTH_LENGTH_ALEXANDRIAN</b> returns the number of days in an Alexandrian month.
</li>
<li>
<b>MONTH_LENGTH_BAHAI</b> returns the number of days in a Bahai month.
</li>
<li>