⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dfmt.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
字号:
{smcl}
{* 05apr2005}{...}
{cmd:help dfmt}
{hline}

{title:Title}

{pstd}
{hi:[U] 12.5.3 Date formats} {hline 2} {cmd:%d} ({cmd:%td}) date format


{title:Remarks}

{pstd}
Formats are generally discussed in {helpb format}.  This entry concerns
the {cmd:%d} and {cmd:%td} date formats.  {cmd:%d} and {cmd:%td} are the same;
use whichever form appeals to you.  There are other {cmd:%t} time-series
formats; see {help tfmt} for details.

{pstd}
The {cmd:%d} ({cmd:%td}) format is defined

{p 8 17 2}{cmd:%}[{cmd:-}][{cmd:t}]{cmd:d}{it:<characters describing how result is to look>}

{pstd}
where the {it:<characters describing how the result is to look>} are

{p 8 8 2}{cmd:c} {cmd:y} {cmd:m} {cmd:l} {cmd:n} {cmd:d} {cmd:j} {cmd:h}
{cmd:q} {cmd:w} {cmd:_} {cmd:.} {cmd:,} {cmd::} {cmd:-} {cmd:/} {cmd:'}
{cmd:!}{it:c}{p_end}
{p 8 8 2}{cmd:C} {cmd:Y} {cmd:M} {cmd:L} {cmd:N} {cmd:D} {cmd:J} {space 3} {cmd:W}

{pstd}and are defined

{p 8 26 2}{cmd:c} and {cmd:C}{space 3}display the century without/with a
	leading 0{p_end}
{p 8 26 2}{cmd:y} and {cmd:Y}{space 3}display the two-digit year without/with a
	leading 0{p_end}
{p 8 26 2}{cmd:m} and {cmd:M}{space 3}display Month, first letter capitalized,
	in three-letter abbreviation ({cmd:m}), or spelled out ({cmd:M}){p_end}
{p 8 26 2}{cmd:l} and {cmd:L}{space 3}display month, first letter not
	capitalized, in three-letter abbreviation ({cmd:l}), or spelled out
	({cmd:L}){p_end}
{p 8 26 2}{cmd:n} and {cmd:N}{space 3}display month number without/with a
	leading 0{p_end}
{p 8 26 2}{cmd:d} and {cmd:D}{space 3}display day-within-month without/with a
	leading 0{p_end}
{p 8 26 2}{cmd:j} and {cmd:J}{space 3}display day-within-year without/with
	leading 0s{p_end}
{p 8 26 2}{cmd:h}{space 9}display the half of year (1 or 2){p_end}
{p 8 26 2}{cmd:q}{space 9}display quarter of year (1, 2, 3, or 4){p_end}
{p 8 26 2}{cmd:w} and {cmd:W}{space 3}display week of year (1, 2, ... 52)
	without/with a leading 0{p_end}
{p 8 26 2}{cmd:_}{space 9}display a blank{p_end}
{p 8 26 2}{cmd:.}{space 9}display a period{p_end}
{p 8 26 2}{cmd:,}{space 9}display a comma{p_end}
{p 8 26 2}{cmd::}{space 9}display a colon{p_end}
{p 8 26 2}{cmd:-}{space 9}display a dash{p_end}
{p 8 26 2}{cmd:/}{space 9}display a slash{p_end}
{p 8 26 2}{cmd:'}{space 9}display a close single quote{p_end}
{p 8 26 2}{cmd:!}{it:c}{space 8}display character {it:c} (code {cmd:!!} to
	display an exclamation point){p_end}

{pstd}
The default {cmd:%d} ({cmd:%td}) format is {cmd:%dDlCY}.

{pstd}
See {help dates} and {help tdates} for an explanation of dates.


{title:Examples}

{center:Format {space 5} Sample date in format}
{center:{hline 34}}
{center:{cmd:%d} {space 9} 11jul1948            }
{center:{cmd:%dDlCY} {space 5} 11jul1948            }
{center:{cmd:%dDlY} {space 6} 11jul48              }
{center:{cmd:%dM_d,_CY} {space 2} July 11, 1948        }
{center:{cmd:%dd_M_CY} {space 3} 11 July 1948         }
{center:{cmd:%dN/D/Y} {space 4} 07/11/48             }
{center:{cmd:%dD/N/Y} {space 4} 11/07/48             }
{center:{cmd:%dY/N/D} {space 4} 48/07/11             }
{center:{cmd:%dN-D-CY} {space 3} 07-11-1948           }


{title:Also see}

{psee}
Manual:  {bf:[U] 12.5 Formats: controlling how data are displayed},{break}
{bf:[U] 12.5.3 Date formats},{break}
{bf:[U] 24 Dealing with dates}

{psee}
Online:  {help dates}, {helpb format}, {help tdates}, {help tfmt}
{p_end}

⌨️ 快捷键说明

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