|
Packit |
081926 |
/*
|
|
Packit |
081926 |
* This file is taken from coreutils 7.4
|
|
Packit |
081926 |
*/
|
|
Packit |
081926 |
|
|
Packit |
081926 |
/* Parse dates for touch and date.
|
|
Packit |
081926 |
|
|
Packit |
081926 |
Copyright (C) 1998, 2003, 2005, 2007 Free Software Foundation Inc.
|
|
Packit |
081926 |
|
|
Packit |
081926 |
This program is free software: you can redistribute it and/or modify
|
|
Packit |
081926 |
it under the terms of the GNU General Public License as published by
|
|
Packit |
081926 |
the Free Software Foundation; either version 3 of the License, or
|
|
Packit |
081926 |
(at your option) any later version.
|
|
Packit |
081926 |
|
|
Packit |
081926 |
This program is distributed in the hope that it will be useful,
|
|
Packit |
081926 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
081926 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
081926 |
GNU General Public License for more details.
|
|
Packit |
081926 |
|
|
Packit |
081926 |
You should have received a copy of the GNU General Public License
|
|
Packit |
081926 |
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
Packit |
081926 |
|
|
Packit |
081926 |
/* Yacc-based version written by Jim Kingdon and David MacKenzie.
|
|
Packit |
081926 |
Rewritten by Jim Meyering. */
|
|
Packit |
081926 |
|
|
Packit |
081926 |
#ifndef POSIXTM_H_
|
|
Packit |
081926 |
# define POSIXTM_H_
|
|
Packit |
081926 |
|
|
Packit |
081926 |
# include <stdbool.h>
|
|
Packit |
081926 |
# include <time.h>
|
|
Packit |
081926 |
|
|
Packit |
081926 |
/* POSIX Date Syntax flags. */
|
|
Packit |
081926 |
# define PDS_LEADING_YEAR 1
|
|
Packit |
081926 |
# define PDS_TRAILING_YEAR 2
|
|
Packit |
081926 |
# define PDS_CENTURY 4
|
|
Packit |
081926 |
# define PDS_SECONDS 8
|
|
Packit |
081926 |
# define PDS_PRE_2000 16
|
|
Packit |
081926 |
|
|
Packit |
081926 |
bool posixtime (time_t *p, const char *s, unsigned int syntax_bits);
|
|
Packit |
081926 |
|
|
Packit |
081926 |
#endif
|