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


  • 相关阅读:
    form 表单提交被拦截的问题处理方法
    GitLab篇之备份还原
    GitLab篇之Linux下环境搭建
    如何管理我的开发团队
    基于静态站点内容动态推送的方案
    一个小白的程序之路(自身经历)
    敏捷开发方法学及应用
    PMBOK项目管理九大知识领域和五大流程 --美国IT项目管理硕士笔记(二)
    IT项目为什么失败 --美国IT项目管理硕士笔记(一)
    五年.net程序员Java学习之路
  • 原文地址:https://www.cnblogs.com/xwing/p/1812963.html
Copyright © 2011-2022 走看看