dateinfo.doc

来自「String Manipulation Routines」· DOC 代码 · 共 45 行

DOC
45
字号

			      DATE INFORMATION


	In working with various bulletin boards and dealing with
	miscellaneous files over the years, we have found a number of
	date formats in use. To facilitate our own function naming, we
	have given the various types the following totally arbitrary
	numerical designations. This information is used with both
	the "strdate<n>" and "strdateconv" functions.

		type	 format
		----	 ------
		  1	mm/dd/yy   NOTE: mm and dd will be padded on the
		  2	mm-dd-yy	 left with a 0 where necessary
		  3	 m/ d/yy   NOTE: m and d will be padded on the
		  4	 m- d-yy	 left with a blank where necessary
		  5	m/d/yy	   NOTE: m and d can be one digit or two
		  6	m-d-yy		 digits but will not be padded
					 with either 0's or blanks
		  7     yy/mm/dd   NOTE: this format is a sortable version
					 which is similar to type 1

	As can be seen above, the difference between the even and odd
	types is the use of '-' versus '/' as the separator character.
	The difference among the three groups of types (1/2, 3/4 and 5/6)
	is as follows:

		1/2	Format is totally fixed and there are no blanks.
			0's will be added to the left of mm and dd as
			necessary to fill out the format.

		3/4	Exactly the same as 1/2 except that no 0's will
			be added, so the format may contain blanks.

		5/6	The date appears in minimal form using a variable
			format with no leading blanks or zeros in any
			subfield

		  7	This is identical to 1, except that the order of
			the month/day/year has been changed so as to
			provide an easily sortable format.


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?