Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: fpdfsdk/include/cpdfsdk_datetime.h

Issue 2333213005: Remove inner FX_DATETIME struct from CPDFSDK_DateTime (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/cpdfsdk_datetime.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef FPDFSDK_INCLUDE_CPDFSDK_DATETIME_H_ 7 #ifndef FPDFSDK_INCLUDE_CPDFSDK_DATETIME_H_
8 #define FPDFSDK_INCLUDE_CPDFSDK_DATETIME_H_ 8 #define FPDFSDK_INCLUDE_CPDFSDK_DATETIME_H_
9 9
10 #if _FX_OS_ == _FX_ANDROID_ 10 #if _FX_OS_ == _FX_ANDROID_
(...skipping 15 matching lines...) Expand all
26 bool operator!=(const CPDFSDK_DateTime& datetime) const; 26 bool operator!=(const CPDFSDK_DateTime& datetime) const;
27 27
28 CPDFSDK_DateTime& FromPDFDateTimeString(const CFX_ByteString& dtStr); 28 CPDFSDK_DateTime& FromPDFDateTimeString(const CFX_ByteString& dtStr);
29 CFX_ByteString ToCommonDateTimeString(); 29 CFX_ByteString ToCommonDateTimeString();
30 CFX_ByteString ToPDFDateTimeString(); 30 CFX_ByteString ToPDFDateTimeString();
31 void ToSystemTime(FX_SYSTEMTIME& st); 31 void ToSystemTime(FX_SYSTEMTIME& st);
32 time_t ToTime_t() const; 32 time_t ToTime_t() const;
33 CPDFSDK_DateTime ToGMT() const; 33 CPDFSDK_DateTime ToGMT() const;
34 CPDFSDK_DateTime& AddDays(short days); 34 CPDFSDK_DateTime& AddDays(short days);
35 CPDFSDK_DateTime& AddSeconds(int seconds); 35 CPDFSDK_DateTime& AddSeconds(int seconds);
36
37 void ResetDateTime(); 36 void ResetDateTime();
38 37
39 private: 38 private:
40 struct FX_DATETIME { 39 int16_t m_year;
41 int16_t year; 40 uint8_t m_month;
42 uint8_t month; 41 uint8_t m_day;
43 uint8_t day; 42 uint8_t m_hour;
44 uint8_t hour; 43 uint8_t m_minute;
45 uint8_t minute; 44 uint8_t m_second;
46 uint8_t second; 45 int8_t m_tzHour;
47 int8_t tzHour; 46 uint8_t m_tzMinute;
48 uint8_t tzMinute;
49 } dt;
50 }; 47 };
51 48
52 #endif // FPDFSDK_INCLUDE_CPDFSDK_DATETIME_H_ 49 #endif // FPDFSDK_INCLUDE_CPDFSDK_DATETIME_H_
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_datetime.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698