blob: 468dd93bae6039b114235eac9b314ece72bd0f6e [file] [log] [blame]
//========================================================================
//
// DateInfo.h
//
// Copyright (C) 2008 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2009 Carlos Garcia Campos <carlosgc@gnome.org>
// Copyright (C) 2015 André Guerreiro <aguerreiro1985@gmail.com>
// Copyright (C) 2015 André Esser <bepandre@hotmail.com>
// Copyright (C) 2016 Adrian Johnson <ajohnson@redneon.com>
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
//
//========================================================================
//========================================================================
//
// Based on code from pdfinfo.cc
//
// Copyright 1998-2003 Glyph & Cog, LLC
//
//========================================================================
#ifndef DATE_INFO_H
#define DATE_INFO_H
#include "goo/gtypes.h"
#include "goo/GooString.h"
#include <time.h>
GBool parseDateString(const char *string, int *year, int *month, int *day, int *hour, int *minute, int *second, char *tz, int *tzHour, int *tzMinute);
/* Converts the time_t into a PDF Date format string.
* If timet is NULL, current time is used.
*/
GooString *timeToDateString(time_t *timet);
/* Convert PDF date string to time.
* Returns -1 if conversion fails.
*/
time_t dateStringToTime(GooString *dateString);
#endif