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

📄 tfmt.hlp

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

{title:Title}

{pstd}
{hi:[U] 12.5.4 Time-series formats} {hline 2} {cmd:%t} time-series formats


{title:Remarks}

{pstd}
Formats are generally discussed in {helpb format}.  This entry concerns
the {cmd:%t} time-series format.  The {cmd:%td} format is equivalent to the
{cmd:%d} date format; see {help dfmt}.

{pstd}
The {cmd:%t} format is defined

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

{pstd}
where {it:<dchar>} describes how the variable is encoded and is one of

	{cmd:d} {cmd:w} {cmd:m} {cmd:q} {cmd:h} {cmd:y}

{pstd}
meaning daily, weekly, monthly, quarterly, half-yearly, and yearly.

{pstd}
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 22 2}{cmd:c} and {cmd:C}{space 3}display the century without/with a
	leading 0{p_end}
{p 8 22 2}{cmd:y} and {cmd:Y}{space 3}display the two-digit year without/with a
	leading 0{p_end}
{p 8 22 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 22 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 22 2}{cmd:n} and {cmd:N}{space 3}display month number without/with a
	leading 0{p_end}
{p 8 22 2}{cmd:d} and {cmd:D}{space 3}display day-within-month without/with a
	leading 0{p_end}
{p 8 22 2}{cmd:j} and {cmd:J}{space 3}display day-within-year without/with
	leading 0s{p_end}
{p 8 22 2}{cmd:h}{space 9}display the half of year (1 or 2){p_end}
{p 8 22 2}{cmd:q}{space 9}display quarter of year (1, 2, 3, or 4){p_end}
{p 8 22 2}{cmd:w} and {cmd:W}{space 3}display week of year (1, 2, ... 52)
	without/with a leading 0{p_end}
{p 8 22 2}{cmd:_}{space 9}display a blank{p_end}
{p 8 22 2}{cmd:.}{space 9}display a period{p_end}
{p 8 22 2}{cmd:,}{space 9}display a comma{p_end}
{p 8 22 2}{cmd::}{space 9}display a colon{p_end}
{p 8 22 2}{cmd:-}{space 9}display a dash{p_end}
{p 8 22 2}{cmd:/}{space 9}display a slash{p_end}
{p 8 22 2}{cmd:'}{space 9}display a close single quote{p_end}
{p 8 22 2}{cmd:!}{it:c}{space 8}display character {it:c} (code {cmd:!!} to
	display an exclamation point){p_end}

{pstd}The defaults for each of the types is

	{cmd:%td}       {cmd:%tdDlCY}
	{cmd:%tw}       {cmd:%twCY!ww}
	{cmd:%tm}       {cmd:%tmCY!mn}
	{cmd:%tq}       {cmd:%tqCY!qq}
	{cmd:%th}       {cmd:%thCY!hh}
	{cmd:%ty}       {cmd:%tyCY}

{pstd}See {help tdates} for an explanation of {cmd:%t} dates.


{title:Examples}

{center:Format {space 6} Sample date in format}
{center:{hline 35}}
{center:{cmd:%td} {space 9} 07jul1948            }
{center:{cmd:%tdM_d,_CY} {space 2} July 7, 1948         }
{center:{cmd:%tdY/M/D} {space 4} 48/07/11             }
{center:{cmd:%tdM-D-CY} {space 3} 07-11-1948           }
{center:{cmd:%tqCY.q} {space 5} 1999.2               }
{center:{cmd:%tqCY:q} {space 5} 1992:2               }
{center:{cmd:%twCY,_w} {space 4} 2010, 48             }


{title:Also see}

{psee}
Manual:  {bf:[U] 12.5 Formats: controlling how data are displayed},{break}
{bf:[U] 12.5.4 Time-series formats},{break}
{bf:[U] 24 Dealing with dates}

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

⌨️ 快捷键说明

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