zoukankan      html  css  js  c++  java
  • DateTime输出结果参考

    Standard DateTime Format Specifiers:

    This date and time: 
    2010/8/30 20:54:51

    Use ToString(String) and the current thread culture.

    Culture:                      中文(中华人民共和国)

    (d) Short date: . . . . . . . 
    2010/8/30
    (D) Long date:. . . . . . . . 2010年8月30日
    (t) Short time: . . . . . . . 
    20:54
    (T) Long time:. . . . . . . . 
    20:54:51
    (f) Full date/short time: . . 2010年8月30日 
    20:54
    (F) Full date/long time:. . . 2010年8月30日 
    20:54:51
    (g) General date/short time:. 
    2010/8/30 20:54
    (G) General date/long time (default):
        . . . . . . . . . . . . . 
    2010/8/30 20:54:51
    (M) Month:. . . . . . . . . . 8月30日
    (R) RFC1123:. . . . . . . . . Mon
    , 30 Aug 2010 12:54:51 GMT
    (s) Sortable: . . . . . . . . 
    2010-08-30T20:54:51
    (u) Universal sortable (invariant):
        . . . . . . . . . . . . . 
    2010-08-30 12:54:51Z
    (U) Universal full date/time: 2010年8月30日 
    12:54:51
    (Y) Year: . . . . . . . . . . 2010年8月
    (o) Roundtrip (local):. . . . 
    2010-08-30T20:54:51.1989897+08:00
    (o) Roundtrip (UTC):. . . . . 
    2010-08-30T12:54:51.1989897Z
    (o) Roundtrip (Unspecified):. 
    2000-03-20T13:02:03.0000000

    Use ToString(String
    , IFormatProvider) and a specified culture.

    Culture:                      德语(德国)

    (d) Short date: . . . . . . . 
    30.08.2010
    (D) Long date:. . . . . . . . Montag
    , 30. August 2010
    (t) Short time: . . . . . . . 
    20:54
    (T) Long time:. . . . . . . . 
    20:54:51
    (f) Full date/short time: . . Montag
    , 30. August 2010 20:54
    (F) Full date/long time:. . . Montag
    , 30. August 2010 20:54:51
    (g) General date/short time:. 
    30.08.2010 20:54
    (G) General date/long time (default):
        . . . . . . . . . . . . . 
    30.08.2010 20:54:51
    (M) Month:. . . . . . . . . . 
    30 August
    (R) RFC1123:. . . . . . . . . Mon
    , 30 Aug 2010 12:54:51 GMT
    (s) Sortable: . . . . . . . . 
    2010-08-30T20:54:51
    (u) Universal sortable (invariant):
        . . . . . . . . . . . . . 
    2010-08-30 12:54:51Z
    (U) Universal full date/time: Montag
    , 30. August 2010 12:54:51
    (Y) Year: . . . . . . . . . . August 
    2010
    (o) Roundtrip (local):. . . . 
    2010-08-30T20:54:51.1989897+08:00
    (o) Roundtrip (UTC):. . . . . 
    2010-08-30T12:54:51.1989897Z
    (o) Roundtrip (Unspecified):. 
    2000-03-20T13:02:03.0000000

    Culture:                      英语(美国)

    (d) Short date: . . . . . . . 
    8/30/2010
    (D) Long date:. . . . . . . . Monday
    , August 30, 2010
    (t) Short time: . . . . . . . 
    8:54 PM
    (T) Long time:. . . . . . . . 
    8:54:51 PM
    (f) Full date/short time: . . Monday
    , August 30, 2010 8:54 PM
    (F) Full date/long time:. . . Monday
    , August 30, 2010 8:54:51 PM
    (g) General date/short time:. 
    8/30/2010 8:54 PM
    (G) General date/long time (default):
        . . . . . . . . . . . . . 
    8/30/2010 8:54:51 PM
    (M) Month:. . . . . . . . . . August 
    30
    (R) RFC1123:. . . . . . . . . Mon
    , 30 Aug 2010 12:54:51 GMT
    (s) Sortable: . . . . . . . . 
    2010-08-30T20:54:51
    (u) Universal sortable (invariant):
        . . . . . . . . . . . . . 
    2010-08-30 12:54:51Z
    (U) Universal full date/time: Monday
    , August 30, 2010 12:54:51 PM
    (Y) Year: . . . . . . . . . . August
    , 2010
    (o) Roundtrip (local):. . . . 
    2010-08-30T20:54:51.1989897+08:00
    (o) Roundtrip (UTC):. . . . . 
    2010-08-30T12:54:51.1989897Z
    (o) Roundtrip (Unspecified):. 
    2000-03-20T13:02:03.0000000


  • 相关阅读:
    eclipse工具
    Tag
    JSP模版
    Eclipse断点调试
    JavaBean
    验证码设计
    在IE中提示404错误
    序列化与反序列化
    文件编码问题
    强类型,弱类型和推断类型
  • 原文地址:https://www.cnblogs.com/xwing/p/1812963.html
Copyright © 2011-2022 走看看