| 设为首页 加入收藏 |
当前位置: |
| TOP | ||||||||||||||||||||||||||||||||||||||||||||
|
数学之路-sas备忘(16)(二)
run; ? ? 30MAR2015:17:25:51.91 =============== ? DATETIMEw. Informat? ? SyntaxDATETIMEw.Syntax Descriptionwspecifies the width of the input field.
DetailsThe datetime values must be in the following form: ddmmmyy or ddmmmyyyy, followed by a blank or special character, followed by hh:mm:ss.ss (the time): dd is an integer between 01 and 31 that represents the day of the month. mmmis the first three letters of the month name. yy or yyyyis a two-digit or four-digit integer that represents the year. hh is an integer between 00 and 23 that represents hours. mmis an integer between 00 and 59 that represents minutes. ss.ss is the number of seconds ranging from 00–59 with the fraction of a second following the decimal point. DATETIMEw. requires values for both the date and the time. However, the ss.ss portion is optional. Note: SAS interprets a two-digit year as belonging to the 100-year span that is defined by the YEARCUTOFF= system option. Note: SAS can read time values with AM and PM in them.ComparisonsThe DATETIMEw.d informat reads datetime values with optional separators in the form dd-mmm-yyExampleinput date_and_time datetime20.;
? Writes SAS date values in the form ? YYMMDDw.Argumentswspecifies the width of the output field.
DetailsThe YYMMDDw. format writes SAS date values in the formComparisonsThe YYMMDDw.d format is similar to the YYMMDDxw.d format, except the YYMMDDxw.d format contains separators, such as a colon, slash, or period between the year, month, and day.ExampleThe following examples use the input value of 18720, which is the SAS date value that corresponds to April 3, 2011.
? |
| 首页 上一页 1 2 下一页 尾页 2/2/2 | |
| 【大 中 小】【打印】 【繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部】 | |
|
分享到:
|
|
| 上一篇:sqoop导入时删除string类型字段的.. | 下一篇:【MongoDB】windows下搭建Mongo主.. |
| 评论 |
|
|
| ·数据库:推荐几款 Re | (2025-12-25 12:17:11) |
| ·如何最简单、通俗地 | (2025-12-25 12:17:09) |
| ·什么是Redis?为什么 | (2025-12-25 12:17:06) |
| ·对于一个想入坑Linux | (2025-12-25 11:49:07) |
| ·Linux 怎么读? | (2025-12-25 11:49:04) |