Glich - v0.3.0 Manual
j - Julian
Home Development v0.3.0 Manual Hics Library j

Calendar Description - Scheme j

This Julian calendar is the simplest possible interpretation of the calendar introduced by Julius Caesar, amended by Augustus Caesar and using the Current Era (also known as Common Era or Christian Era) year count. This version is also known as Julian Astronomical calendar as it is the version generally used by astronomers. The year change is the 1st January, the year zero is included, years before year zero are given as negative. There is no attempt to allow for the irregular leap years that occurred when the calendar was first introduced.

Use Case

The Julian calendar has been used throughout Europe and the European colonies since its introduction by Julius Caesar, but in many different variants. In this form, some of its known uses are:

Definition

Month Names - Lexicon m
NumberNameNumber of Days
FullAbrev.CommonLeap
1JanuaryJan3131
2FebruaryFeb2829
3MarchMar3131
4AprilApr3030
5MayMay3131
6JuneJun3030
7JulyJul3131
8AugustAug3131
9SeptemberSep3030
10OctoberOct3131
11NovemberNov3030
12DecemberDec3131

The Julian calendar is based on a solar year of 365.25 days. Days start at midnight, but there may be some local variation in this..

The Record consists of three Fields named year, month, and day and the Optional Field wday.

Record
yearmonthdaywday

There are two types of years, a common year and a leap year, which follow the repeating pattern of three common years then one leap year. There are twelve months in a year numbered 1 to 12. The number of days in a month varies between 28 and 31, and are numbered from 1, as shown in the table opposite. This gives a total of 365 days in a common year and 366 in a leap year.

The Epoch is set at
jyearmonthday
111
=
jdnday
1721424
.

Formats

The formats supplied with this scheme.

Formats - Grammar j
CodeRulePseudo:inPseudo:outExampleNote
dmytextday month yeardd Mon yyyy26 Jan 2023D, S
dmy+textday month yeardd Month yyyy26 January 2023S
wdmytextwday day month yearWday dd Mon yyyyWed 26 Jan 2023
wdmy+textwday day month yearWeekday dd Month yyyyWednesday 26 January 2023
stdtextday month yearddth Month yyyy26th January 2023S
fulltextwday day month yearWeekday ddth Month yyyyWednesday 26th January 2023
mdytextmonth day yearMon dd, yyyyJan 26, 2023S
mdy+textmonth day yearMonth dd, yyyyJanuary 26, 2023S
wmdytextwday month day yearWday, Mon dd, yyyyWed, Jan 26, 2023
wmdy+textwday month day yearWeekday, Month dd, yyyyWednesday, January 26, 2023
ymdtextyear month dayyyyy:Mon:dd2023:Jan:26S
deftextyear month dayyyyy mm dd2023 1 26H, S
uunit9y 9m 9d9y 9m 9d2023y 1m 26dH
Notes: D = Default, H = Hidden, S = Range shortcut supported. Example based on jdn# 2459984

Script

Script - Module hics:julian
lexicon m { name "Month names"; fieldname month; lang en; pseudo Month, Mon; tokens { 1, "January", "Jan"; 2, "February", "Feb"; 3, "March", "Mar"; 4, "April", "Apr"; 5, "May"; 6, "June", "Jun"; 7, "July", "Jul"; 8, "August", "Aug"; 9, "September", "Sep"; 10, "October", "Oct"; 11, "November", "Nov"; 12, "December", "Dec"; } } grammar j { name "Julian"; fields year month day; optional wday; lexicons m, w; alias pseudo { w wday; dd day; mm month; yyyy year; } alias unit { d day; m month; y year; } format dmy "{day} |{month:m:a} |{year}"; format "dmy+" "{day} |{month:m} |{year}"; format wdmy "{wday:w:a} |{day} |{month:m:a} |{year}"; format "wdmy+" "{wday:w} |{day} |{month:m} |{year}"; format std "{day::os} |{month:m} |{year}"; format full "{wday:w} |{day::os} |{month:m} |{year}"; format mdy "{month:m:a} |{day}, |{year}"; format "mdy+" "{month:m} |{day}, |{year}"; format wmdy "{wday:w:a}, |{month:m:a} |{day}, |{year}"; format "wmdy+" "{wday:w}, |{month:m} |{day}, |{year}"; format ymd "{year}|:{month:m:a}|:{day}"; preferred dmy; } scheme j { name "Julian"; base julian; grammar j; }

The script uses the lexicon "w" definition from the jwn Julian Week Number scheme for the optional field wday.

Home Development v0.3.0 Manual Hics Library j

Managed by WebPageLayout Validated by HTML Validator (based on Tidy)

19th July 2023