%ZTFDT ; jch,EdM ; 10 Dec 97 12:26;Function Library, Date and Time functions
Source file <ZTFDTNTM.m>
Package | Total | Call Graph |
---|---|---|
Kernel | 1 | ($$ABS,$$UPCASE)^%ZTF |
VA Fileman | 1 | ^%DT |
Name | Comments | DBIA/ICR reference |
---|---|---|
ADDT(D,D0,H,M,S) | ;Add days, Hours, Minutes, Seconds to Date D
|
|
NOW() | ;Return the current date and time in Fileman format
|
|
CDA4 | ||
CDA2 | ||
CDA3 | ||
CDA1 | ||
ADDM(D,M) | ;Add months to Date D
|
|
ERRNL | ||
DTC(D1,D2) | ;Compare two dates and return the number of days between them
|
|
CDATF2H(F,W,Y,M,D,T) | ;Convert Fileman date to $H format
|
|
CDA1A | ||
CDATA2F(D,F) | ;Convert ASCII date to fileman format
|
|
CDA9 | ||
CDATH2F(H,W,Y,M,D) | ;Convert date in $H format to Fileman format
|
|
DT() | ;Return the current date in Fileman format
|
|
CDATASC(D,DF,TF) | ;Convert internal date value to ASCII
|
|
ERR0 | ||
DATEOUT(DT,F) | ;Return date as specified in SSPM
; DT is a date (in FileMan or $H format) to be translated to ; F format. If DT is an invalid date then a -1 is returned. ; 1 "02 Aug 1987" ; 2 "02 Aug 1987@1300" ; 3 "02 Aug 87" ; 4 "02Aug" ; 5 "02Aug@1300" ; 6 "02Aug87" ; 7 "02Aug87@1300" ; 8 "02 August 1987 @ 1300" ; 9 "02 August 1987 1300" ; 10 "02 Aug 87 @ 1300" |
Name | Line Occurrences |
---|---|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Name | Line Occurrences |
---|---|
$$ADDT | CDATA2F+10 |
$$CDATASC | DATEOUT+18 |
$$CDATF2H | ADDT+1, CDA4, DTC+1 |
$$CDATH2F | ADDT+3, CDATA2F+10, CDATASC+10, DT+1, NOW+1, DATEOUT+16 |
CDA1A | CDA4, CDA9 |
CDA2 | CDATASC+12 |
CDA3 | CDATASC+12 |
CDA4 | CDATASC+12 |
CDA9 | CDATASC+12 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
% | %ZTFDT+4~, %ZTFDT+5*, CDATA2F+6~, CDATA2F+7*, CDATA2F+8*, CDATA2F+9*, CDATA2F+10*, CDATA2F+11*, CDATA2F+12*, CDATA2F+13* , CDATA2F+14*, CDATA2F+15, CDATA2F+16, CDATA2F+17*, CDATA2F+18*, CDATA2F+19*, CDATA2F+20*, CDATA2F+21*, CDATA2F+22*, CDATA2F+23 , CDATA2F+29, CDATASC+9~, CDATASC+11*, CDA1A*, CDA2*, CDA3*, CDA9+2, CDATF2H+3~, CDATF2H+6*, CDATF2H+7* |
%( | CDATA2F+17*, CDATA2F+20 |
%(1 | CDATA2F+16*, CDATA2F+18*, CDATA2F+19, CDATA2F+20, CDATA2F+22 |
%(2 | CDATA2F+16*, CDATA2F+18*, CDATA2F+22 |
%(3 | CDATA2F+16*, CDATA2F+21*, CDATA2F+22* |
%0 | CDATA2F+6~, CDATA2F+7*, CDATA2F+8*, CDATA2F+10, CDATA2F+23, CDATA2F+24, CDATA2F+25*, CDATA2F+26*, CDATA2F+27, CDATA2F+28* , CDATA2F+29*, CDATASC+9~, CDATASC+11*, CDATASC+12, CDA1A*, CDA2, CDA3, CDA9, CDA9+1*, CDA9+2 |
%1 | CDATA2F+6~, CDATA2F+9*, CDATA2F+15*, CDATA2F+17*, CDATA2F+20, CDATA2F+21*, CDATA2F+22*, CDATA2F+25*, CDATA2F+26*, CDATA2F+27* , CDATA2F+29, CDATASC+9~, CDATASC+11*, CDATASC+12, CDA1*, CDA1A, CDA2, CDA3, CDA4*, CDA9* , CDA9+1* |
%2 | CDATA2F+6~, CDATA2F+7*, CDATA2F+9*, CDATA2F+10, CDATA2F+17*, CDATA2F+20*, CDATA2F+25*, CDATA2F+26*, CDATA2F+27*, CDATA2F+29 |
%3 | CDATA2F+6~, CDATA2F+9*, CDATA2F+15*, CDATA2F+17*, CDATA2F+24*, CDATA2F+26*, CDATA2F+28 |
%5 | CDATA2F+15~*, CDATA2F+17*, CDATA2F+18* |
%DT | DATEOUT+14~ |
D | ADDT~, ADDT+1*, ADDT+2*, ADDT+3*, ADDM~, ADDM+2, ADDM+3, ADDM+4, CDATA2F~, CDATA2F+7* , CDATA2F+9, CDATASC~, CDATASC+10*, CDATASC+11, CDA4, CDA9+1, CDATF2H~, CDATF2H+3*, CDATF2H+5*, CDATF2H+6 , CDATH2F~, CDATH2F+3*, CDATH2F+5 |
D0 | ADDT~, ADDT+3 |
D1 | DTC~, DTC+1 |
D2 | DTC~, DTC+1 |
DF | CDATASC~, CDATASC+9*, CDATASC+12* |
DT | DATEOUT~, DATEOUT+15, DATEOUT+16*, DATEOUT+17, DATEOUT+18, DATEOUT+32 |
F | CDATA2F~, CDATA2F+6*, CDATA2F+20, CDATA2F+23, CDATF2H~, CDATF2H+3, CDATF2H+4*, CDATF2H+7, DATEOUT~, DATEOUT+23 |
FF | DATEOUT+14~, DATEOUT+23*, DATEOUT+25, DATEOUT+27, DATEOUT+28, DATEOUT+29, DATEOUT+30 |
H | ADDT~, ADDT+1, CDATF2H+3~, CDATF2H+6*, CDATF2H+7, CDATH2F~, CDATH2F+3 |
I | ADDM+1~, ADDM+3*, ADDM+4*, ADDM+5*, ADDM+6*, ADDM+7 |
L | %ZTFDT+4~, %ZTFDT+6*, %ZTFDT+7 |
M | ADDT~, ADDT+1, ADDM~, ADDM+2, ADDM+3, ADDM+4, CDATF2H~, CDATF2H+3*, CDATF2H+5*, CDATF2H+6 , CDATH2F~, CDATH2F+3*, CDATH2F+5 |
N | %ZTFDT+4~, %ZTFDT+5*, %ZTFDT+7*, %ZTFDT+8, %ZTFDT+9* |
R | %ZTFDT+4~, %ZTFDT+5*, %ZTFDT+6 |
S | ADDT~, ADDT+1 |
T | %ZTFDT+4~, %ZTFDT+6*, %ZTFDT+7, %ZTFDT+8, ADDT+1~*, ADDT+2*, ADDT+3*, CDATA2F+6~*, CDATA2F+8, CDATA2F+24 , CDATF2H~, CDATF2H+3*, CDATF2H+4*, CDATF2H+7, CDATH2F+3~*, CDATH2F+4*, CDATH2F+5, DATEOUT+14~, DATEOUT+18*, DATEOUT+19* , DATEOUT+20, DATEOUT+24, DATEOUT+26*, DATEOUT+27*, DATEOUT+28*, DATEOUT+29*, DATEOUT+31, DATEOUT+32*, DATEOUT+33 |
TF | CDATASC~, CDATASC+9*, CDA4*, CDA9+1 |
TM | DATEOUT+14~, DATEOUT+20*, DATEOUT+28, DATEOUT+29 |
W | CDATASC+9~, CDATASC+10, CDA4*, CDATF2H~, CDATF2H+7*, CDATH2F~, CDATH2F+3* |
X | ADDM+1~, ADDM+3*, ADDM+4*, ADDM+5, ADDM+6, ADDM+7*, DATEOUT+14~, DATEOUT+17*, DATEOUT+19, DATEOUT+31* , DATEOUT+32 |
Y | ADDM+1~, ADDM+6*, CDATF2H~, CDATF2H+3*, CDATF2H+6, CDATH2F~, CDATH2F+3*, CDATH2F+5, DATEOUT+14~, DATEOUT+17 , DATEOUT+24*, DATEOUT+25*, DATEOUT+26 |
Name | Field # of Occurrence |
---|---|
$T( | %ZTFDT+4, %ZTFDT+5 |