`

Date and Time Format Patterns

    博客分类:
  • j2se
 
阅读更多
Date and Time Format Patterns -------------------------------------------------------------------------------- All the patterns: 0 MM/dd/yyyy 08/02/2011 1 dddd, dd MMMM yyyy Tuesday, 02 August 2011 2 dddd, dd MMMM yyyy HH:mm Tuesday, 02 August 2011 06:44 3 dddd, dd MMMM yyyy hh:mm tt Tuesday, 02 August 2011 06:44 AM 4 dddd, dd MMMM yyyy H:mm Tuesday, 02 August 2011 6:44 5 dddd, dd MMMM yyyy h:mm tt Tuesday, 02 August 2011 6:44 AM 6 dddd, dd MMMM yyyy HH:mm:ss Tuesday, 02 August 2011 06:44:23 7 MM/dd/yyyy HH:mm 08/02/2011 06:44 8 MM/dd/yyyy hh:mm tt 08/02/2011 06:44 AM 9 MM/dd/yyyy H:mm 08/02/2011 6:44 10 MM/dd/yyyy h:mm tt 08/02/2011 6:44 AM 11 MM/dd/yyyy HH:mm:ss 08/02/2011 06:44:23 12 MMMM dd August 02 13 MMMM dd August 02 14 yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK 2011-08-02T06:44:23.8447397-04:00 15 yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK 2011-08-02T06:44:23.8447397-04:00 16 ddd, dd MMM yyyy HH':'mm':'ss 'GMT' Tue, 02 Aug 2011 06:44:23 GMT 17 ddd, dd MMM yyyy HH':'mm':'ss 'GMT' Tue, 02 Aug 2011 06:44:23 GMT 18 yyyy'-'MM'-'dd'T'HH':'mm':'ss 2011-08-02T06:44:23 19 HH:mm 06:44 20 hh:mm tt 06:44 AM 21 H:mm 6:44 22 h:mm tt 6:44 AM 23 HH:mm:ss 06:44:23 24 yyyy'-'MM'-'dd HH':'mm':'ss'Z' 2011-08-02 06:44:23Z 25 dddd, dd MMMM yyyy HH:mm:ss Tuesday, 02 August 2011 06:44:23 26 yyyy MMMM 2011 August 27 yyyy MMMM 2011 August The patterns for DateTime.ToString ( 'd' ) : 0 MM/dd/yyyy 08/02/2011 The patterns for DateTime.ToString ( 'D' ) : 0 dddd, dd MMMM yyyy Tuesday, 02 August 2011 The patterns for DateTime.ToString ( 'f' ) : 0 dddd, dd MMMM yyyy HH:mm Tuesday, 02 August 2011 06:44 1 dddd, dd MMMM yyyy hh:mm tt Tuesday, 02 August 2011 06:44 AM 2 dddd, dd MMMM yyyy H:mm Tuesday, 02 August 2011 6:44 3 dddd, dd MMMM yyyy h:mm tt Tuesday, 02 August 2011 6:44 AM The patterns for DateTime.ToString ( 'F' ) : 0 dddd, dd MMMM yyyy HH:mm:ss Tuesday, 02 August 2011 06:44:23 The patterns for DateTime.ToString ( 'g' ) : 0 MM/dd/yyyy HH:mm 08/02/2011 06:44 1 MM/dd/yyyy hh:mm tt 08/02/2011 06:44 AM 2 MM/dd/yyyy H:mm 08/02/2011 6:44 3 MM/dd/yyyy h:mm tt 08/02/2011 6:44 AM The patterns for DateTime.ToString ( 'G' ) : 0 MM/dd/yyyy HH:mm:ss 08/02/2011 06:44:23 The patterns for DateTime.ToString ( 'm' ) : 0 MMMM dd August 02 The patterns for DateTime.ToString ( 'r' ) : 0 ddd, dd MMM yyyy HH':'mm':'ss 'GMT' Tue, 02 Aug 2011 06:44:23 GMT The patterns for DateTime.ToString ( 's' ) : 0 yyyy'-'MM'-'dd'T'HH':'mm':'ss 2011-08-02T06:44:23 The patterns for DateTime.ToString ( 'u' ) : 0 yyyy'-'MM'-'dd HH':'mm':'ss'Z' 2011-08-02 06:44:23Z The patterns for DateTime.ToString ( 'U' ) : 0 dddd, dd MMMM yyyy HH:mm:ss Tuesday, 02 August 2011 06:44:23 The patterns for DateTime.ToString ( 'y' ) : 0 yyyy MMMM 2011 August --------------------------------------------------------------------------------
分享到:
评论

相关推荐

    Head First iPhone and iPad Development, 3rd Edition

    Take advantage of iPhone OS patterns such as datasources and delegates Preview your applications in the Simulator Build more complicated interactions that utilize multiple views, data entry/editing, ...

    Java.Regex.Crash.Course.B015YXJCMY.epub

    Chapter 10: Regex for Time Format Chapter 11: Regex for Date Format Chapter 12: Regex for HTML Tag Chapter 13: Regex for Finding HTML Links Chapter 14: Regex for URL Chapter 15: Regex for Phone Number...

    基于python爬虫的菜价可视化系统源码数据库论文.docx

    7. **Real-time Updates**: To keep the information up-to-date, the system can be scheduled to periodically run the web scraper and update the database. This allows stakeholders to monitor changes in ...

    NaturalDateFormat,.zip

    按照材料设计指南(https://www.google.com/design/spec/patterns/data formats.html data formats date time)中的说明格式化日期的库。

    gun tar for windows

    --newer-mtime compare date and time when data changed only --after-date=DATE same as -N --backup[=CONTROL] backup before removal, choose version control --suffix=SUFFIX backup before removel, ...

    UE(官方下载)

    The benefit of a column maker is that it can help you to format your text/code, or in some cases to make it easier to read in complex nested logic. Quick Open UltraEdit and UEStudio provide multiple ...

    date-utilities:DateUtlis用于管理日期

    3. **日期格式化**:`java.text.SimpleDateFormat`是旧的日期格式化工具,而`java.time.format.DateTimeFormatter`是Java 8引入的新工具。它们可以将日期转换为字符串,或将字符串解析为日期。例如,`"yyyy-MM-dd"`...

    微软内部资料-SQL性能优化3

    If no rows satisfy the WHERE condition the first time the range is scanned, no rows should be returned on any subsequent scans. Key range locks are similar to row locks on index keys (whether ...

    BUS Hound

    check box in the settings Window. <br>Date <br>Date the phase occurred in year/month/day format. <br>Time <br>Time the phase occurred in hour:minute:second.millisecond format. The hour ...

    8-07-14_MegaCLI for linux_windows

    LSIP200232921 (DFCT) MegaCLI displays version for PD in unclear format and the data is not aligned correctly LSIP200232954 (DFCT) Need to Support all the MFC default values in the command AdpSettings...

    【QA】 es记录.docx

    "format": "yyyy-MM-dd HH:mm:ss.SSS||strict_date_optional_time||epoch_millis" } } } } } ``` 以上配置确保了 Kibana 能够识别并正确解析上述格式的时间戳,从而避免了由于时间格式问题导致的数据查询异常。...

    python自动提取文本中的时间(包含中文日期)

    result = parse_time((modified_pattern, modified_format_str), text, self.base_date) if result: results.append(result) return results ``` #### 四、使用示例 假设我们有一个包含中文日期的文本字符串:...

    VB编程资源大全(英文控件)

    JPGMaker.zip JPGMaker is an ActiveX control designed to compress bitmap images and save them in JPG format<END><br>16,pictuner.zip PicTuner is an ActiveX control designed to adjust contrast, ...

    The way to go

    3.4 Building and running go-programs with command- and Makefiles..........................35 3.5 Formatting code: go fmt or gofmt.........................................................................

    [Go语言入门(含源码)] The Way to Go (with source code)

    3.4 Building and running go-programs with command- and Makefiles..........................35 3.5 Formatting code: go fmt or gofmt.........................................................................

    Python Power - The Comprehensive Guide (2008).pdf

    And Now for Something Completely Different… ....................................................18 CHAPTER 2 Python Language Overview ....................................................................

    spring-framework-reference4.1.4

    3. New Features and Enhancements in Spring Framework 4.0 ............................................ 17 3.1. Improved Getting Started Experience .........................................................

    spring-framework-reference-4.1.2

    3. New Features and Enhancements in Spring Framework 4.0 ............................................ 17 3.1. Improved Getting Started Experience .........................................................

    Doctrine ORM for PHP.pdf

    Table of Contents Introduction....................................................................................................13 Code Examples.........................................................

Global site tag (gtag.js) - Google Analytics