| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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 XFA_SRC_FGAS_LOCALIZATION_FGAS_DATETIME_H_ | 7 #ifndef XFA_FGAS_LOCALIZATION_FGAS_DATETIME_H_ |
| 8 #define XFA_SRC_FGAS_LOCALIZATION_FGAS_DATETIME_H_ | 8 #define XFA_FGAS_LOCALIZATION_FGAS_DATETIME_H_ |
| 9 | 9 |
| 10 #include "core/include/fxcrt/fx_system.h" | 10 #include "core/include/fxcrt/fx_system.h" |
| 11 | 11 |
| 12 class CFX_Unitime; | 12 class CFX_Unitime; |
| 13 class CFX_DateTime; | 13 class CFX_DateTime; |
| 14 | 14 |
| 15 typedef int64_t FX_UNITIME; | 15 typedef int64_t FX_UNITIME; |
| 16 enum FX_WEEKDAY { | 16 enum FX_WEEKDAY { |
| 17 FX_Sunday = 0, | 17 FX_Sunday = 0, |
| 18 FX_Monday, | 18 FX_Monday, |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 return dt1.ToUnitime() <= ((const CFX_DateTime&)dt2).ToUnitime(); | 396 return dt1.ToUnitime() <= ((const CFX_DateTime&)dt2).ToUnitime(); |
| 397 } | 397 } |
| 398 friend FX_BOOL operator<=(const FX_DATETIME& dt1, const CFX_DateTime& dt2) { | 398 friend FX_BOOL operator<=(const FX_DATETIME& dt1, const CFX_DateTime& dt2) { |
| 399 return ((const CFX_DateTime&)dt1).ToUnitime() <= dt2.ToUnitime(); | 399 return ((const CFX_DateTime&)dt1).ToUnitime() <= dt2.ToUnitime(); |
| 400 } | 400 } |
| 401 | 401 |
| 402 private: | 402 private: |
| 403 FX_DATETIME m_DateTime; | 403 FX_DATETIME m_DateTime; |
| 404 }; | 404 }; |
| 405 | 405 |
| 406 #endif // XFA_SRC_FGAS_LOCALIZATION_FGAS_DATETIME_H_ | 406 #endif // XFA_FGAS_LOCALIZATION_FGAS_DATETIME_H_ |
| OLD | NEW |