From 0e4d5115f4d9ef1b7218155fa1bd3fe01adffd4b Mon Sep 17 00:00:00 2001 From: kud1ing Date: Sat, 30 Mar 2013 00:15:54 -0700 Subject: [PATCH] Updated Lib datetime (markdown) --- Lib-datetime.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/Lib-datetime.md b/Lib-datetime.md index 00a0ae9..39574b2 100644 --- a/Lib-datetime.md +++ b/Lib-datetime.md @@ -162,19 +162,45 @@ Options: * Date/Time coupled to a calendar * Used by: * Qt: Gregorian calendar + * Cons: + * ? + * Pros: + * ? * Date/Time tied to a configurable calendar * Used by: Boost, Joda + * Cons: + * ? + * Pros: + * ? * Date/Time independent of a calendar * Used by: Cocoa + * Cons: + * ? + * Pros: + * ? ### Support for Date/Time without a timezone + +When the timezone information is missing, e.g. parsing from a textual representation, there are the following options: + Options: * support Date/Time with no attached timezone * Used by: * Joda: LocalDate, LocalTime, LocalDateTime - * no support Date/Time with no attached timezone + * Cons: + * more complex interfaces/types + * ? + * Pros: + * clear distinction between dates that are comparable and date that are not + * ? + * assume the local timezone if the timezone is not available * Used by: * Cocoa + * Cons: + * dates are created that appear to be comparable, but are not. One needs to keep tracks of those dates. + * ? + * Pros: + * ? ### Reference