Understanding ISO 8601 date and time representation formats Tex Texin XenCraft.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

You have been given a mission and a code. Use the code to complete the mission and you will save the world from obliteration…
1
Feichter_DPG-SYKL03_Bild-01. Feichter_DPG-SYKL03_Bild-02.
Chapter 1 The Study of Body Function Image PowerPoint
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 38.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Chapter 1 Image Slides Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
David Burdett May 11, 2004 Package Binding for WS CDL.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
Understanding ISO 8601 date and time representation formats Tex Texin Director, International Business Progress Software Corporation.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Topic 1Topic Q 1Q 6Q 11Q 16Q 21 Q 2Q 7Q 12Q 17Q 22 Q 3Q 8Q 13Q 18Q 23 Q 4Q 9Q 14Q 19Q 24 Q 5Q 10Q 15Q 20Q 25.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
Multiplying binomials You will have 20 seconds to answer each of the following multiplication problems. If you get hung up, go to the next problem when.
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Addition Facts
Year 6 mental test 5 second questions
Year 6 mental test 10 second questions Numbers and number system Numbers and the number system, fractions, decimals, proportion & probability.
The 24-hour clock 1 12-hour clock 24-hour clock
ZMQS ZMQS
Break Time Remaining 10:00.
Find the total of 5 hours 10 minutes 3 hours 23 minutes 6 hours 39 minutes Click for solution + hours minutes7214 More than 60 minutes? YES: convert 60.

ABC Technology Project
© S Haughton more than 3?
VOORBLAD.
15. Oktober Oktober Oktober 2012.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Squares and Square Root WALK. Solve each problem REVIEW:
We are learning how to read the 24 hour clock
© 2012 National Heart Foundation of Australia. Slide 2.
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
Chapter 5 Test Review Sections 5-1 through 5-4.
SIMOCODE-DP Software.
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
Benjamin Banneker Charter Academy of Technology Making AYP Benjamin Banneker Charter Academy of Technology Making AYP.
Addition 1’s to 20.
Model and Relationships 6 M 1 M M M M M M M M M M M M M M M M
25 seconds left…...
: 3 00.
5 minutes.
1 Atlantic Annual Viewing Trends Adults 35-54, Total TV, By Daypart Average Minute Audience (000) Average Weekly Reach (%) Average Weekly Hours Viewed.
Januar MDMDFSSMDMDFSSS
Week 1.
Let’s take a 15 minute break Please be back on time.
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Converting a Fraction to %
Clock will move after 1 minute
1 Unit 1 Kinematics Chapter 1 Day
PSSA Preparation.
Essential Cell Biology
How Cells Obtain Energy from Food
FINAL EXAMINATION SCHEDULE SPRING 2009 MAY 15 – MAY 22 NOTE: A class that meets at more than one of the times on this final examination schedule will take.
Select a time to count down from the clock above
Murach’s OS/390 and z/OS JCLChapter 16, Slide 1 © 2002, Mike Murach & Associates, Inc.
Presentation transcript:

Understanding ISO 8601 date and time representation formats Tex Texin XenCraft

21st International Unicode Conference 2Dublin, Ireland, May 2002 Objectives for this session n ISO 8601:1988 is updated in n What is in ISO 8601:2000? n Are there potential pitfalls in using ISO 8601, especially for internationalization? n If so, are there workarounds?

21st International Unicode Conference 3Dublin, Ireland, May 2002 Brief Overview of ISO 8601 Problem Areas Solutions Brief Overview of ISO 8601 Problem Areas Solutions Agenda

21st International Unicode Conference 4Dublin, Ireland, May 2002 n Dates –Calendar dates –Ordinal dates –Week dates n Time of day –Local vs. Coordinated Universal Time (UTC) –Combined date and time n Time-intervals –Recurring time-intervals ISO 8601:2000 Overview

21st International Unicode Conference 5Dublin, Ireland, May 2002 Representing dates, times, durations and intervals n Uses character representation –ISO/IEC 646 (ASCII), no spaces n Separators (Extended Format) –Hyphens, Colons, Solidus, Number sign n Truncation –Omission of higher order components n Reduced Precision –Omission of lower order components n Expansion- years 9999 n Fixed length fields using leading zeros

21st International Unicode Conference 6Dublin, Ireland, May 2002 Representing dates, times, durations and intervals n Designators –P is time-interval designator –R is recurring time-interval designator –T indicates start of Time elements –W is week designator –Z is UTC designator n Duration designators –Y, M, W, D, H, M, S may be used –M can be minute, month, or both

21st International Unicode Conference 7Dublin, Ireland, May 2002 Calendar Dates n Gregorian calendar –1875 is reference point –Common (365) and Leap (366) years –Leap is every 4th year except centennial years that are not integrally divisible by 400 –Gregorian is used even for years < 1582 (by mutual agreement). –Year 0000 is leap.

21st International Unicode Conference 8Dublin, Ireland, May 2002 Calendar week n Monday is day 1, Sunday is day 7. n Weeks are numbered or n Week 1 includes the first Thursday of year. –Alternatively, Week 1 includes Jan 4. n Week 1 may include 3 days of last year. –Last week may include 3 days of next year.

21st International Unicode Conference 9Dublin, Ireland, May 2002 Representing dates n Calendar date –year, month, day number within month n Ordinal date –year, day number within year n Week date –year, week, number within week

21st International Unicode Conference 10Dublin, Ireland, May 2002 Representing dates

21st International Unicode Conference 11Dublin, Ireland, May 2002 n Dates –Calendar dates –Ordinal dates –Week dates n Time of day –Local vs. Universal Time Coordinated (UTC) –Combined data and time n Time-intervals –Recurring time-intervals ISO 8601:2000 Overview

21st International Unicode Conference 12Dublin, Ireland, May 2002 Representing times n Hours (allowing midnight-midnight) n Minutes n Seconds (allowing leap seconds) n Decimal fractions of hour, minute, second n Local and Universal (UTC) time

21st International Unicode Conference 13Dublin, Ireland, May 2002 Representing times

21st International Unicode Conference 14Dublin, Ireland, May 2002 Combined date and time n T indicates start of time n Mix and match as needed: Calendar dates + local time YYYY-MM-DDThh:mm Ordinal dates + UTC time YYYY-DDDThh:mmZ Week dates + offset from UTC YYYYWwwDThh:mm±hhmm

21st International Unicode Conference 15Dublin, Ireland, May 2002 n Dates –Calendar dates –Ordinal dates –Week dates n Time of day –Local vs. Universal Time Coordinated (UTC) –Combined data and time n Time-intervals –Recurring time-intervals ISO 8601:2000 Overview

21st International Unicode Conference 16Dublin, Ireland, May 2002 Representing time-intervals n P indicates a duration (period) n Intervals come in 4 varieties: –start and end times YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss –durations PnYnMnDTnHnMnS P2Y10M15DT10H30M20S 2 Yr, 10 mon, 15 days, 10 hrs. 30 min. 20 sec. P6W is a duration of 6 weeks.

21st International Unicode Conference 17Dublin, Ireland, May 2002 Representing time-intervals n The remaining 2 varieties –start time and duration YYYY-MM-DDThh:mm:ss/PnYnMnDTnHnMnS or YYYY-MM-DDThh:mm:ss/PYYYY-MM-DDThh:mm:ss T23:20:50/P T12:30:00 –duration and end time PnYnMnDTnHnMnS/YYYY-MM-DDThh:mm:ss or PYYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss

21st International Unicode Conference 18Dublin, Ireland, May 2002 Recurring time-intervals n Recurring time intervals are expressed by: –# of recurrences and start and end times –# of recurrences and a duration –# of recurrences & start time & a duration –# of recurrences & duration & end time n If # of recurrences is not provided, then the number is unbounded n R is used to indicate recurrence

21st International Unicode Conference 19Dublin, Ireland, May 2002 Recurring with Start and End Times: Rn/YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss R12/ T23:20:50/ T10:30:00 Recurring with a duration: Rn/PnYnMnDTnHnMnS R12/P2Y10M15DT10H20M20S Recurring with a Start Time and duration: Rn/YYYY-MM-DDThh:mm:ss/PnYnMnDTnHnMnS R12/ T23:20:50/P2Y2M15DT12H30M0S Examples of recurring time-intervals

21st International Unicode Conference 20Dublin, Ireland, May 2002 Benefits of ISO 8601 n Human-readable n Easy to use n Easy to parse, unambiguous n Easy to sort n Many date-time schemes exist, a standard is needed

21st International Unicode Conference 21Dublin, Ireland, May 2002 Brief Overview of ISO 8601 Problem Areas Solutions Brief Overview of ISO 8601 Problem Areas Solutions Agenda

21st International Unicode Conference 22Dublin, Ireland, May 2002 Ambiguities n Future leap seconds are unpredictable Is T23:59:60Z valid? n Year, month, minute have varying sizes P1M = P28D or P29D or P30D or P31D n Mismatched precision 1985W50 <= 1985W501? n Truncation opens the door for Y2K issues n Variations of 8601 exist in practice –Julian, Gregorian, Emperor...

21st International Unicode Conference 23Dublin, Ireland, May 2002 Ambiguities n Date arithmetic is not defined P1M = (Add 30 days) P1M = (Add 1 mon.) n Addition is not commutative or associative P1D + P1M = P1M + P1D = n Subtraction is not the inverse of Addition n Precision of decimal fractions can vary

21st International Unicode Conference 24Dublin, Ireland, May 2002 Conversions n Gregorian calendar adopted at different times around the world n Most calendars do not include year 0. n 8601 extends leap years into the past, other calendars do not. n Dates without times are often not qualified by time zone. –Time zones (currently) go from -13 to +12 –So the date could be +/- 1 day

21st International Unicode Conference 25Dublin, Ireland, May 2002 Conversions n Laws determining daylight savings time change continually n Difficult to know local time offsets.

21st International Unicode Conference 26Dublin, Ireland, May 2002 Brief Overview of ISO 8601 Problem Areas Solutions Brief Overview of ISO 8601 Problem Areas Solutions Agenda

21st International Unicode Conference 27Dublin, Ireland, May 2002 Solutions n Mutual Agreements n Referencing other standards and implementations –e.g. Java n Standards employing 8601 may need to introduce rules or constraints –e.g. XML Schema n Restrict use of 8601 formats

21st International Unicode Conference 28Dublin, Ireland, May 2002 n Mark Davis (IBM) n W3C Internationalization working and interest groups Resources n ISOs web page to order the standard: n Mail list: n Links: groups.yahoo.com/group/ISO8601/files/pdf_link.htm Acknowledgements

21st International Unicode Conference 29Dublin, Ireland, May 2002 Questions