Annotation of freem_fileman/DINIT018.m, revision 1.1
1.1 ! snw 1: DINIT018 ; SFISC/TKW-DIALOG & LANGUAGE FILE INITS ; 12/22/94 09:32:23
! 2: ;;21.0;VA FileMan;;Dec 28, 1994
! 3: ;Per VHA Directive 10-93-142, this routine should not be modified.
! 4: F I=1:2 S X=$T(Q+I) Q:X="" S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) S @X=Y
! 5: Q Q
! 6: ;;^DD(.85,10.21,21,4,0)
! 7: ;;=code, in addition to the internal date in Y, a third parameter will be
! 8: ;;^DD(.85,10.21,21,5,0)
! 9: ;;=defined to contain flags equivalent to the flag passed as the second input
! 10: ;;^DD(.85,10.21,21,6,0)
! 11: ;;=parameter to FMTE^DILIBF. The code should set Y to the output, without
! 12: ;;^DD(.85,10.21,21,7,0)
! 13: ;;=altering any other variables in the environment. The output should be
! 14: ;;^DD(.85,10.21,21,8,0)
! 15: ;;=formatted based on these flags:
! 16: ;;^DD(.85,10.21,21,9,0)
! 17: ;;=
! 18: ;;^DD(.85,10.21,21,10,0)
! 19: ;;= 1 MMM DD, YYYY@HH:MM:SS
! 20: ;;^DD(.85,10.21,21,11,0)
! 21: ;;= 2 MM/DD/YY@HH:MM:SS no leading zeroes on month,day
! 22: ;;^DD(.85,10.21,21,12,0)
! 23: ;;= 3 DD/MM/YY@HH:MM:SS no leading zeroes on month,day
! 24: ;;^DD(.85,10.21,21,13,0)
! 25: ;;= 4 YY/MM/DD@HH:MM:SS
! 26: ;;^DD(.85,10.21,21,14,0)
! 27: ;;= 5 MMM DD,YYYY@HH:MM:SS no space before year,no leading zero on day
! 28: ;;^DD(.85,10.21,21,15,0)
! 29: ;;= 6 MM-DD-YYYY @ HH:MM:SS spaces separate time
! 30: ;;^DD(.85,10.21,21,16,0)
! 31: ;;= 7 MM-DD-YYYY@HH:MM:SS no leading zeroes on month,day
! 32: ;;^DD(.85,10.21,21,17,0)
! 33: ;;=
! 34: ;;^DD(.85,10.21,21,18,0)
! 35: ;;=letters in the flag
! 36: ;;^DD(.85,10.21,21,19,0)
! 37: ;;= S return always seconds
! 38: ;;^DD(.85,10.21,21,20,0)
! 39: ;;= U return uppercase month names
! 40: ;;^DD(.85,10.21,21,21,0)
! 41: ;;= P return time as am,pm
! 42: ;;^DD(.85,10.21,21,22,0)
! 43: ;;= D return only date part
! 44: ;;^DD(.85,10.21,"DT")
! 45: ;;=2940624
! 46: ;;^DD(.85,10.3,0)
! 47: ;;=CARDINAL NUMBER FORMAT^K^^CRD;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
! 48: ;;^DD(.85,10.3,3)
! 49: ;;=This is Standard MUMPS code.
! 50: ;;^DD(.85,10.3,9)
! 51: ;;=@
! 52: ;;^DD(.85,10.3,21,0)
! 53: ;;=^^5^5^2941121^^
! 54: ;;^DD(.85,10.3,21,1,0)
! 55: ;;=MUMPS code used to transfer a number in Y to its cardinal equivalent in
! 56: ;;^DD(.85,10.3,21,2,0)
! 57: ;;=this language. The code should set Y to the cardinal equivalent without
! 58: ;;^DD(.85,10.3,21,3,0)
! 59: ;;=altering any other variables in the environment. Ex. in English:
! 60: ;;^DD(.85,10.3,21,4,0)
! 61: ;;= Y=2000 becomes Y=2,000
! 62: ;;^DD(.85,10.3,21,5,0)
! 63: ;;= Y=1234567 becomes Y=1,234,567
! 64: ;;^DD(.85,10.3,"DT")
! 65: ;;=2940308
! 66: ;;^DD(.85,10.4,0)
! 67: ;;=UPPERCASE CONVERSION^K^^UC;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
! 68: ;;^DD(.85,10.4,3)
! 69: ;;=This is Standard MUMPS code.
! 70: ;;^DD(.85,10.4,9)
! 71: ;;=@
! 72: ;;^DD(.85,10.4,21,0)
! 73: ;;=^^4^4^2941121^
! 74: ;;^DD(.85,10.4,21,1,0)
! 75: ;;=MUMPS code used to convert text in Y to its upper-case equivalent in
! 76: ;;^DD(.85,10.4,21,2,0)
! 77: ;;=this language. The code should set Y to the external format without
! 78: ;;^DD(.85,10.4,21,3,0)
! 79: ;;=altering any other variables in the environment. In English, changes
! 80: ;;^DD(.85,10.4,21,4,0)
! 81: ;;= abCdeF to: ABCDEF
! 82: ;;^DD(.85,10.4,"DT")
! 83: ;;=2940308
! 84: ;;^DD(.85,10.5,0)
! 85: ;;=LOWERCASE CONVERSION^K^^LC;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
! 86: ;;^DD(.85,10.5,3)
! 87: ;;=This is Standard MUMPS code.
! 88: ;;^DD(.85,10.5,9)
! 89: ;;=@
! 90: ;;^DD(.85,10.5,21,0)
! 91: ;;=^^4^4^2941121^
! 92: ;;^DD(.85,10.5,21,1,0)
! 93: ;;=MUMPS code used to convert text in Y to its lower-case equivalent in
! 94: ;;^DD(.85,10.5,21,2,0)
! 95: ;;=this language. The code should set Y to the external format without
! 96: ;;^DD(.85,10.5,21,3,0)
! 97: ;;=altering any other variables in the environment. In English, changes:
! 98: ;;^DD(.85,10.5,21,4,0)
! 99: ;;= ABcdEFgHij to: abcdefghij
! 100: ;;^DD(.85,10.5,"DT")
! 101: ;;=2940308
! 102: ;;^DD(.85,20.2,0)
! 103: ;;=DATE INPUT^K^^20.2;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
! 104: ;;^DD(.85,20.2,3)
! 105: ;;=This is Standard MUMPS code.
! 106: ;;^DD(.85,20.2,9)
! 107: ;;=@
! 108: ;;^DD(.85,20.2,"DT")
! 109: ;;=2940714
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>