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
--------------------------------------------------------------------------------
分享到:
相关推荐
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, ...
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...
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 ...
按照材料设计指南(https://www.google.com/design/spec/patterns/data formats.html data formats date time)中的说明格式化日期的库。
--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, ...
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 ...
3. **日期格式化**:`java.text.SimpleDateFormat`是旧的日期格式化工具,而`java.time.format.DateTimeFormatter`是Java 8引入的新工具。它们可以将日期转换为字符串,或将字符串解析为日期。例如,`"yyyy-MM-dd"`...
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 ...
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 ...
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...
"format": "yyyy-MM-dd HH:mm:ss.SSS||strict_date_optional_time||epoch_millis" } } } } } ``` 以上配置确保了 Kibana 能够识别并正确解析上述格式的时间戳,从而避免了由于时间格式问题导致的数据查询异常。...
result = parse_time((modified_pattern, modified_format_str), text, self.base_date) if result: results.append(result) return results ``` #### 四、使用示例 假设我们有一个包含中文日期的文本字符串:...
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, ...
3.4 Building and running go-programs with command- and Makefiles..........................35 3.5 Formatting code: go fmt or gofmt.........................................................................
3.4 Building and running go-programs with command- and Makefiles..........................35 3.5 Formatting code: go fmt or gofmt.........................................................................
And Now for Something Completely Different… ....................................................18 CHAPTER 2 Python Language Overview ....................................................................
3. New Features and Enhancements in Spring Framework 4.0 ............................................ 17 3.1. Improved Getting Started Experience .........................................................
3. New Features and Enhancements in Spring Framework 4.0 ............................................ 17 3.1. Improved Getting Started Experience .........................................................
Table of Contents Introduction....................................................................................................13 Code Examples.........................................................