Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: INHUTC2A

INHUTC2A.m

Go to the documentation of this file.
  1. INHUTC2A ;bar; 20 May 97 22:07; Interface Criteria date help
  1. ;;3.01;BHL IHS Interfaces with GIS;;JUL 01, 2001
  1. ;COPYRIGHT 1991-2000 SAIC
  1. ;;COPYRIGHT 1997 SAIC
  1. Q
  1. ;
  1. HELP ; display help screens
  1. N X
  1. D HELP1("HELPX1")
  1. R !!?25,"Press Return to continue",X:$S($D(DTIME):DTIME,1:300)
  1. D HELP1("HELPX2")
  1. Q
  1. ;
  1. HELP1(INLINE) ; Display help message and quit
  1. ;
  1. ; Input: INLINE = line tag entry for the help section
  1. ;
  1. N INI,INL
  1. F INI=1:1 S INL=$T(@INLINE+INI) Q:'$L($P(INL,";;",2)) D
  1. .S INL=$P(INL,";;",2) W !,INL
  1. Q
  1. ;
  1. HELPX1 ; Insert help lines here for page 1
  1. ;;$$RELDT^INHUTC2 converts a text string containing date mnemonics and
  1. ;;modifiers to FileMan internal date format. This function allows a
  1. ;;date to be set relative to the current date based on a set of
  1. ;;instructions. This can be used to recalculate the date for a task
  1. ;;on the fly rather than asking the user to input dates or hard-code a routine.
  1. ;;For example, use 'BM-1' as a start date and 'EM-1' as the end date
  1. ;;for all of last month.
  1. ;;
  1. ;;Call: Set FMdate=$$RELDT^INHUTC2(text_string,opt_string,prompt)
  1. ;;Parameters: text_string: base_date[(+-) integer [date_modifier][@hhmmss]
  1. ;; Multiple date_modifiers can be used. Example: LSA-7D+4H
  1. ;; Base Date Formats
  1. ;; Mnemonic Description
  1. ;;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  1. ;; MM/DD/YY, etc. Standard date input formats available with ^%DT
  1. ;; NOW Current date and time
  1. ;; TODAY or T Current date
  1. ;; BY or EY Beginning or end of the current Year
  1. ;; BM or EM Beginning or end of current Month
  1. ;; BD or ED Beginning or end of current Day
  1. ;; SA,SU,MO,TU,WE,TH,FR Day of the week.
  1. ;;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  1. ;;
  1. HELPX2 ; Insert help lines here for page 2
  1. ;; Date Modifier Formats
  1. ;; Mnemonic Description
  1. ;;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  1. ;;@hhmmss Standard time input formats available with ^%DT
  1. ;; Y Years.
  1. ;; MO Months.
  1. ;; D Days. This is the default.
  1. ;; H Hours.
  1. ;; MI Minutes.
  1. ;; S Seconds.
  1. ;;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  1. ;; opt_string: Optional string of characters. Same format as ^%DT
  1. ;; opt_string Characters
  1. ;; Mnemonic Description
  1. ;;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  1. ;; A Ask for input.
  1. ;; E Echo the answer.
  1. ;; F Future dates are assumed.
  1. ;; N Pure numeric input is not allowed.
  1. ;; O Time-only is allowed.
  1. ;; P Past dates are assumed.
  1. ;; R Require time input.
  1. ;; S Seconds are returned.
  1. ;; T Time input is allowed.
  1. ;; X Exact month and day is required.
  1. ;; U Return user readable date/time.
  1. ;;