TermCode Perl Module

Creates representations for the term a given month and year belongs to. To see representations for the current term, run the termcode program on the command-line with the appropriate arguments.

The following term codes can be produced for the term spanning January 2010 to April 2010:

Representation Name Description
1262322000 FMT_TIME Seconds since the epoch as of the first second of the first month of term in local time
1001 FMT_MFCF 2-digit year followed by 2-digit starting month; used for classlist files and by ClassListPerlModule
1101 FMT_REGISTRAR Perl natural year (calendar_year - 1900) followed by 1-digit starting month
W10 FMT_SHORT Letter term identifier followed by 2-digit year
Winter 2010 FMT_LONG Word term identifier followed by a space and a full-digit year

Note that FMT_MFCF and FMT_SHORT ambiguously define the year as only a 2-digit year is used; the other representations do not have this problem.

As of Spring 2010, there should be online documentation and man pages available; at that point, this page should be expanded on in a way that complements this information.

See also:

Topic revision: r8 - 2018-09-05 - YiLee
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback