`
maimode
  • 浏览: 415752 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Date and Time Patterns

 
阅读更多

java.text.SimpleDateFormat中的pettern:

Letter Date or Time Component Presentation Examples
G Era designator Text AD
y Year Year 1996; 96
M Month in year Month July; Jul; 07
w Week in year Number 27
W Week in month Number 2
D Day in year Number 189
d Day in month Number 10
F Day of week in month Number 2
E Day in week Text Tuesday; Tue
a Am/pm marker Text PM
H Hour in day (0-23) Number 0
k Hour in day (1-24) Number 24
K Hour in am/pm (0-11) Number 0
h Hour in am/pm (1-12) Number 12
m Minute in hour Number 30
s Second in minute Number 55
S Millisecond Number 978
z Time zone General time zone Pacific Standard Time; PST; GMT-08:00
Z Time zone RFC 822 time zone -0800

 

常用的模式:yyyy-MM-dd HH:mm:ss

分享到:
评论

相关推荐

    C#日期格式化

    - **Standard Date and Time Patterns**: - `d`:短日期(例如:11/5/2005) - `D`:长日期(例如:November 5, 2005) - `f`:全日期时间(例如:11/5/2005 1:21 PM) - `F`:完整日期时间(例如:Saturday, ...

    Addison.Wesley.Real-Time Design Patterns.chm

    Real-Time Design Patterns: Robust Scalable Architecture for Real-Time Systems By Bruce Powel Douglass Publisher : Addison Wesley Pub Date : September 27, 2002 ISBN : 0-201-69956-7 Pages : 528 ...

    Implementing.Cloud.Design.Patterns.for.AWS

    Make web applications resilient against scheduled and accidental down-time Explore and apply Amazon-provided services in unique ways to solve common problems Who This Book Is For This book is aimed at...

    HBase.Design.Patterns

    Optimize HBase's handling of single entities, time series, large files, and complex events by utilizing design patterns Written in an easy-to-follow style, and incorporating plenty of examples, and ...

    Apress.Practical.UI.Patterns.for.Design.Systems.1484249372.rar

    as well as the rise of companies competing on design and usability, now is the time to think about how we use and evolve UI patterns and scale design systems. What You'll Learn Produce intuitive ...

    Apache.Solr.Search.Patterns.1783981849

    Furthermore, we discuss how Solr can be used for real-time analytics and tackle problems faced during its implementation in e-commerce search. We then dive deep into the spatial features such as ...

    Prentice.Hall.An.Introduction.to.Design.Patterns.in.C++.with.Qt4.2006.chm

    An Introduction to Design Patterns in C++ with Qt 4 is a complete tutorial and reference that assumes no previous knowledge of C, C++, objects, or patterns. You'll walk through every core concept, one...

    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, ...

    Professional C# 7 and .NET Core 2.0

    Guided by a leading .NET expert and steeped in real-world practicality, this guide is designed to get you up to date and back to work. With Microsoft speeding up its release cadence while offering ...

    Learning.Internet.of.Things

    A secure architecture is proposed that will take full advantage of the power of Internet of Things and at the same time protect end user integrity and private personal data without losing flexibility...

    OCA Oracle Certified Associate Java SE 8 Programmer I Study Guide(SYBEX,2014)

    The release of Java 8 brought the language’s biggest changes to date, and for the first time, candidates are required to learn functional programming to pass the exam. This study guide has you ...

    Java SE 8 Programmer I Study Guide: Exam 1Z0-808

    The release of Java 8 brought the language's biggest changes to date, and for the first time, candidates are required to learn functional programming to pass the exam. This study guide has you ...

    ComponentOne Studio for WinRT XAML2012 v3

    Studio for WinRT XAML provides many controls and features missing from WinRT, such as date/time pickers, calendars, data visualization, layout panels, masked text and numeric input. Stunning and ...

    PHP实战:对象,设计,敏捷(PHP in Action :Objects, Design, Agility )

    8 怎样设计的问题:日期和时间处理 (Design how-to: date and time handling) Part 2: 测试和重构 (Testing and refactoring) 9 测试驱动开发 (Test-driven development) 10 高级测试技术 (Advanced testing ...

    Hadoop.Essentials.1784396680

    Starting with the concepts of Hadoop YARN, MapReduce, HDFS, and other Hadoop ecosystem components, you will soon learn many exciting topics such as MapReduce patterns, data management, and real-time ...

Global site tag (gtag.js) - Google Analytics