home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crawly Crypt Collection 2
/
crawlyvol2.bin
/
apps
/
bbs
/
today201
/
todayrpt.fmt
< prev
next >
Wrap
Text File
|
1994-10-29
|
15KB
|
351 lines
TODAYSRPT.FMT for version 2.01
Position Meaning
------ -----------------------------------------------
+----------- Beginning Marker (ALWAYS a % sign)
|+---------- 1 Function code (as opposed to a heading code (%H))
|| +------ 2,3,4 Function name: (see below)
|| | +------ 5 Display type: As defined in TODAYS.LNG,
|| | | Cardinal, External, Number, Ordinal,
|| | | Plural, Roman, or Upper Case
|| | |+----- 6 Modifier: Word, Number, Suffex, Integer, or Each
|| | ||+---- 7 Justification: Left, Right, Center, 0s, or None
|| | |||+--- 8+ Justification Value (1-32767) (See Note Below)
|| | ||||+-- Ending Marker (ALWAYS a % sign)
||/|\|||||
%FDOWAWL#%
Notes:
The justification value is any number between 1 and 32767,
and will be used to 'align' the text. The default value is
the length of the result of the function (no justification).
Justification values are ignored if No justification is
selected in the 7th position. (You can have them there, but
they'll have no effect.)
If the Justification Value is less then the length of the
value or word, the value or word will be 'trimmed' to the
Justification Value. (i.e. %FDOWAWL3% would deliver the 3
left most characters in the Day Of the Week word defined in
TODAYS.LNG, %FDOWAWR3% would deliver the three right most
characters.)
The 5th position code A (As defined) means that the word that
is in the TODAYS.LNG file will be copied into the function,
or that it should come out in a specific format. See the
Function names list below for where it can be used.
Upper, in the display Type (position 5) converts the As
defined characters in your TODAYS.LNG file to Upper case. As
with the As defined display type, it is ONLY valid for those
functions listed below that have a A to the right of the
code.
Cardinal numbers are the numbers used when counting (One,
Two, Three, Four, etc.)
Ordinal numbers are numbers as when used in showing order or
succession. (First, Second, Third, Forth, etc.)
To get Ordinal numbers, use a capitol letter o, not the
number 0!
Roman, in the 5th position, gives the value in Roman Numberals.
Because the Roman Numberal for 5,000 (a V with a line over it)
cannot be displayed, this function is limited to those numbers
under 4,000 (1 - 3,999). There is no Roman Numberal for 0.
External, in the 5th position, provides the user with a method
of getting the n-th line out of a external file. For instance,
if the day of the week code (DOW) is used in positions 2 - 4,
the program will read the day of the week-th line from the
external file. To provide support for functions resulting in 0,
the value is automatically increased by 1. If the day of the
week was Friday, the program would read the 7th line of the
file. (Friday is the 6th day of the week + 1 to allow for 0 =
7th line. A typical External support line might look like:
%FDOWEc:\today\weekday.txt%
Plural, also in the 5th position, tells TODAYS that you want the
program to determine the proper word to use (i.e. day or days)
to use with the result of the Function code. TODAYS will append
the word onto the end of the number.
Plural, when used with Modifier W in position 6, results with
*only* the word (i.e day or days), but *not* the number.
The Suffix option in position 6 is valid ONLY if the Number
option is selected in position 5.
The Integer option in position 6 means that the result should
always be a number, and that TODAYS should not use the
'ZeroSwap' command in TODAYS.CFG for this function.
The 0's option in position 7 is a special Right justification
method. It is only valid if the Number option is selected in
position 5. Zeros, instead of spaces, will appear to the
left of the Number.
Function names:
AH$ A PostHeader from TODAYS.CFG
APM A AM or PM
ARD A Age _to_ Range Date
BDM A Business Day of Month
BDQ A Business Day of Quarter
BDW A Business Day of Week
BDY A Business Day of Year
BLM A Business days Left in Month
BLQ A Business days Left in Quarter
BLW A Business days Left in Week
BLY A Business days Left in Year
CD0 A Current Date (in format dd.mm.yyyy)
CD1 A Current Date (in format mm/dd/yyyy)
CD2 A Current Date (in format dd.mm.yy)
CD3 A Current Date (in format mm/dd/yy)
CDW A Current Day of Week
COT A Computer On Time (ddd:hh:mm:ss)
CR$ A CarridgeReturn from TODAYS.CFG
CRI A CarridgeReturn with Indent from TODAYS.CFG
CSY A Current Season of the Year
DA$ A DefineAfter from TODAYS.CFG
DA0 A DAte (in format dd.mm.yyyy)
DA1 A DAte (in format mm/dd/yyyy)
DA2 A DAte (in format dd.mm.yy - 2 digit year)
DA3 A DAte (in format mm/dd/yy - 2 digit year)
DCO A Days Computer has been On
DCS A Day of Current Season
DLM Days Left in Month
DLQ Days Left in current Quarter
DLS Days Left in Season
DLW Days Left in Week
DLY Days Left in Year
DOM Day Of Month
DOQ Day Of current Quarter
DOT Days of computer On Time
Note: The difference between the ?OT and ?CO functions is that
the ?OT functions seperate out the COT function into it's
component parts, for example if the COT function returned
7:12:43:08 then DOT would return 7, HOT would return 12,
MOT would return 43, and SOT would return 8.
DCO would also return 7, but HCO would return 180 (7
days*24=168+12 hours), MCO would return 10843 (180
hours*60=10800+43 minutes), SCO would return 110588 (10843
minutes*60=10580+8 seconds).
'Ticks' are computer clock cycles, which for the ST/TT is
200, so TCO would return 22117600.
DOW A Day Of Week
DOY Day Of Year
DS1 A Days Since Spring
DS2 A Days Since Summer
DS3 A Days Since Fall
DS4 A Days Since Winter
DU1 A Days Until Spring
DU2 A Days Until Summer
DU3 A Days Until Fall
DU4 A Days Until Winter
Note: DU# and DS# always use the *next* or the *last* season as
appropriate.
EXT W import EXTernal file. All other modifiers invalid!
Note: Following the %FEXT should come the name of the file you
want TODAYS to load in. Remember to terminate the command
with a %. Example: %FEXTD:\TEXT\IMPORT.TXT% When run,
TODAYS will 'import' the D:\TEXT\IMPORT.TXT file directly
where you have the funtion code.
FLM Full weeks Left in Month
FLQ Full weeks Left in Quarter
FLS Full weeks Left in Season
FLY Full weeks Left in Year
FOL Full week of year on Line
FOM Full week Of Month
FOQ Full week Of Quarter
FOS Full week Of Season
FOY Full week Of Year
GMT A Current Greenwich Time
H12 A Hour of day (12 hour format)
H24 Hour of day (24 hour format)
HCO C Hours Computer has been On
HLD Hours Left in Day
HOT Hours of computer On Time
JUD C Julian Date (number of days since 1/1/4713 BC)
JYR C Julian YeaR
LUN LUNar year (aka "The Golden Number") (a 19 year cycle)
MCO C Minutes Computer has been On
MIN MINutes of hour
MLD C Minutes Left in Day
MLH Minutes Left in Hour
MLY Months Left in Year
MOD C Minute Of Day
MOH Minutes Of Hour
MON A MONth of year
MOT Minutes of computer On Time
NSY A Next Season of the Year
PH$ A AfterHeader from TODAYS.CFG
POD A Period of Day (Morning, Afternoon, Evening, or Night.)
PT$ A PreText from TODAYS.CFG
PY$ A PreYear from TODAYS.CFG
QLY Quarters Left in Year
QTR QuarTeR of year (1,2,3, or 4. Numbers only, no names.
RAN W import RANdom line from a external file.
All other modifiers invalid!
Note: Following %FRAN must come the name of the file you want
TODAYS to use. Remember to terminate the command with a
%. Example: %FRAND:\TEXT\IMPORT.TXT% When run, TODAYS
will count the number of lines in the D:\TEXT\IMPORT.TXT
file, generate a RANdom number based on that, and
'import' the randomly selected line from the file
directly where you have the function code. It's slow,
since the file has to be read in once just to figure out
how many lines there are in the file, and then read
through the file to find the line, but it works. TODAYS
will *not* check to see if the line has been used before.
RIY Roman Indiction or "Tax" Year (a 15 year cycle)
SCO C Seconds Computer has been On
SCY Solar Year Cycle (a 28 year cycle)
SEC SEConds of minute
SEP A Seperator from TODAYS.CFG
SLD C Seconds Left in Day
SLM Seconds Left in Minute
SOD C Seconds Of Day
SOM Seconds Of Minute
SOT Seconds of computer On Time
STD C STar Date (Last 4 digits of JULian date)
STP STar date Point
TCO AC Time Computer has been On (ddd:hh:mm:ss)
TIM A Time (hh:mm:ss)
TLD A Time Left in Day (hh:mm:ss)
TUL Total number of days Until/since date on Line
WLM Weeks Left in Month
WLQ Weeks Left in Quarter
WLS Weeks Left in Season
WLY Weeks Left in Year
WOL Week of year On Line
WOM Week Of Month
WOQ Week Of Quarter
WOS Week Of Season
WOY Week Of Year
WUL Number of Weeks Until/since date on Line
YR2 Year (last 2 digits)
YR4 C Year (4 digits)
ZON A Current Time ZONe name as defined in TODAYS.LNG
^^^
|||
||+-- The W in this column means that the last character of the
|| function name can be changed to a W to force the program to
|| do a word wrap on the line before it is inserted into your
|| report. (functions EXT and RAN *only*!)
||
|+--- The C in this column means that the last character of
| the function name can be changed to a C to produce a
| value that has commas in it. i.e. JUD would become JUC
| to produce the JUlian date with Commas.
|
+---- The A in this column means that either the As defined or
Upper display type codes may be used.
---------------------------------------------------------------------
Below are codes that may be used in addition to the above codes
on the lines within your TODAY.mmm monthly files, any AdditionalFiles
you use, or the AlternateFile in your TODAYS.CFG file. These codes
*CANNOT* be used in the TODAYS.RPT file!
DO0 A L Date On line (in format dd.mm.yyyy)
DO1 A L Date On line (in format mm/dd/yyyy)
DO2 A L Date On line (in format dd.mm.yy - 2 digit year)
DO3 A L Date On line (in format mm/dd/yy - 2 digit year)
DOL L Day of the month On the Line from the TODAY.mmm file
DUL L Days Until/since date on Line, exclusive of months and/or years
DWL A L Day of Week on the Line from the TODAY.mmm file
DXL L Number of Days until/since date on line, eXclusive of weeks
DYL L Day of Year on the Line from the TODAY.mmm file
JOL C L Julian date of the date On the Line from the TODAY.xxx file
JYL C L Julian Year of the date on the Line from the TODAY.xxx file
MOL L Month that is On the Line from the TODAY.mmm file
MUL L Months Until/since date on Line exclusive of days and/or years
NUL C L Number of days Until/since the date in columns 2-9 on the
Line from your TODAY.xxx file(s)
STL L Stardate of the the date On the Line from the TODAY.xxx file
(NOTE: No Commas option!)
YOL C L Year that is On the Line from the TODAY.xxx file
YUL C L number of Years Until/since the date in colums 5-9 on the
Line from your TODAY.xxx file
---------------------------------------------------------------------
Below are codes that can *only* be used on Range Date lines in
the data files.
DLR R Days Left in Range
DOR R Day of Range
ER0 A R End of Range date (in format dd.mm.yyyy)
ER1 A R End of Range date (in format mm/dd/yyyy)
ER2 A R End of Range date (in format dd.mm.yy - 2 digit year)
ER3 A R End of Range date (in format mm/dd/yy - 2 digit year)
RNG R Number of days to display the line for (the Range Of Line)
SR0 A R Start of Range date (in format dd.mm.yyyy)
SR1 A R Start of Range date (in format mm/dd/yyyy)
SR2 A R Start of Range date (in format dd.mm.yy - 2 digit year)
SR3 A R Start of Range date (in format mm/dd/yy - 2 digit year)
^^ ^
|| |
|| +- The L in this column means that the function can *only* be
|| | used on a line from your data files.
|| |
|| +- The R in this column means that the function can *only* be
|| used on a Range Date Line from your data files.
||
|+--- The C in this column means that the last character of
| the function name can be changed to a C to produce a
| value that has commas in it. i.e. JOL would become JOC
| to produce the Julian date with commas.
|
+---- The A in this column means that the As defined or Upper
display type codes may be used.
NOTE: When %F codes are used on the lines from the TODAY.mmm
file(s) the resultant lines are *NOT* lined up, nor is
the year displayed to the left of the text. Users may
select to duplicate the method for presenting the years on
'normal' lines though the use of the %FYOLNNR9% Function
code.
-----------------------------------------------------------------------
Math!
As of 03/12/1994, you can do _limited_ math funtions within
TODAYS. Currently the only math allowed is addition, subtraction,
multipication, division, and modula (MOD).
To use TODAYS math within Function codes, the equation you want
TODAYS to perform *MUST* be enclosed in the brackets: []. For
example, to have TODAYS find the day of the year and add 6 to it, you
would use the code: %FDOY[+6]NNN%. (The NNN can be any valid Display
Type, Modifier, and Justification. I just picked those for
simplicity.)
You may choose to do more then one operation within the brackets
if you so choose. Mathimatics will be performed in a simple left to
right operation, for example %FJOD[&3+1*10]NNN% will find the Julian
Date, mod 3 it, add 1, and multiply the result by 10.
The math functions have not been completely tested at this point,
and I hope in the future to allow Function Codes to be used in
addition to the above, (i.e. %FDOW[+DOY]NNN% would result in the Day
of the week plus the day of the year), but for now, that's not
available.
** USE MATH FUCTIONS AT YOUR OWN RISK!! **