Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-10 10:23:45

0001 //========================================================================
0002 //
0003 // DateInfo.h
0004 //
0005 // Copyright (C) 2008, 2018, 2019 Albert Astals Cid <aacid@kde.org>
0006 // Copyright (C) 2009 Carlos Garcia Campos <carlosgc@gnome.org>
0007 // Copyright (C) 2015 André Guerreiro <aguerreiro1985@gmail.com>
0008 // Copyright (C) 2015 André Esser <bepandre@hotmail.com>
0009 // Copyright (C) 2016, 2021 Adrian Johnson <ajohnson@redneon.com>
0010 //
0011 // To see a description of the changes please see the Changelog file that
0012 // came with your tarball or type make ChangeLog if you are building from git
0013 //
0014 //========================================================================
0015 
0016 //========================================================================
0017 //
0018 // Based on code from pdfinfo.cc
0019 //
0020 // Copyright 1998-2003 Glyph & Cog, LLC
0021 //
0022 //========================================================================
0023 
0024 #ifndef DATE_INFO_H
0025 #define DATE_INFO_H
0026 
0027 #include "goo/GooString.h"
0028 #include "poppler_private_export.h"
0029 #include <ctime>
0030 
0031 bool POPPLER_PRIVATE_EXPORT parseDateString(const GooString *date, int *year, int *month, int *day, int *hour, int *minute, int *second, char *tz, int *tzHour, int *tzMinute);
0032 
0033 /* Converts the time_t into a PDF Date format string.
0034  * If timeA is NULL, current time is used.
0035  * Returns new GooString. Free with delete.
0036  */
0037 GooString POPPLER_PRIVATE_EXPORT *timeToDateString(const time_t *timeA);
0038 
0039 /* Convert PDF date string to time.
0040  * Returns -1 if conversion fails.
0041  */
0042 time_t POPPLER_PRIVATE_EXPORT dateStringToTime(const GooString *dateString);
0043 
0044 #endif