Export of internal Abseil changes.
-- 906c47420646d510edd2479d5542c56f5fa31b65 by CJ Johnson <johnsoncj@google.com>: Import of CCTZ from GitHub. PiperOrigin-RevId: 216573923 -- 74560d4afd2b605909e677c6fc3076049fb3010a by Eric Fiselier <ericwf@google.com>: Avoid -Wformat-pedantic in benchmark. PiperOrigin-RevId: 216523769 -- 9bcc9da8b03e6d1ea43ee78931256c5541cb9686 by Eric Fiselier <ericwf@google.com>: Delete unused CityHash functions. PiperOrigin-RevId: 216464492 -- a42563b394c89fbb4c55cb5a6a5edbf96d271eea by Abseil Team <absl-team@google.com>: Introduce new Abseil interfaces for converting between civil times and absolute times.s Deprecates absl::ConvertDateTime() and absl::FromDateTime(). PiperOrigin-RevId: 216424948 -- 088e11235124267517d7f137854fa5554679c24f by Eric Fiselier <ericwf@google.com>: Remove unneeded break statements in test. PiperOrigin-RevId: 216403321 GitOrigin-RevId: 906c47420646d510edd2479d5542c56f5fa31b65 Change-Id: Idb44420be623e369c66f5a9c92bdc9ab46d3ec92
This commit is contained in:
		
							parent
							
								
									445998d7ac
								
							
						
					
					
						commit
						f340f773ed
					
				
					 24 changed files with 2675 additions and 2592 deletions
				
			
		|  | @ -68,25 +68,35 @@ namespace cctz { | |||
| // it would take us to another day, and perhaps week, or even month.
 | ||||
| struct PosixTransition { | ||||
|   enum DateFormat { J, N, M }; | ||||
|   struct { | ||||
|     DateFormat fmt; | ||||
|     union { | ||||
|       struct { | ||||
|         std::int_fast16_t day;  // day of non-leap year [1:365]
 | ||||
|       } j; | ||||
|       struct { | ||||
|         std::int_fast16_t day;  // day of year [0:365]
 | ||||
|       } n; | ||||
|       struct { | ||||
|         std::int_fast8_t month;    // month of year [1:12]
 | ||||
|         std::int_fast8_t week;     // week of month [1:5] (5==last)
 | ||||
|         std::int_fast8_t weekday;  // 0==Sun, ..., 6=Sat
 | ||||
|       } m; | ||||
| 
 | ||||
|   struct Date { | ||||
|     struct NonLeapDay { | ||||
|       std::int_fast16_t day;  // day of non-leap year [1:365]
 | ||||
|     }; | ||||
|   } date; | ||||
|   struct { | ||||
|     struct Day { | ||||
|       std::int_fast16_t day;  // day of year [0:365]
 | ||||
|     }; | ||||
|     struct MonthWeekWeekday { | ||||
|       std::int_fast8_t month;    // month of year [1:12]
 | ||||
|       std::int_fast8_t week;     // week of month [1:5] (5==last)
 | ||||
|       std::int_fast8_t weekday;  // 0==Sun, ..., 6=Sat
 | ||||
|     }; | ||||
| 
 | ||||
|     DateFormat fmt; | ||||
| 
 | ||||
|     union { | ||||
|       NonLeapDay j; | ||||
|       Day n; | ||||
|       MonthWeekWeekday m; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   struct Time { | ||||
|     std::int_fast32_t offset;  // seconds before/after 00:00:00
 | ||||
|   } time; | ||||
|   }; | ||||
| 
 | ||||
|   Date date; | ||||
|   Time time; | ||||
| }; | ||||
| 
 | ||||
| // The entirety of a POSIX-string specified time-zone rule. The standard
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue