1d6f907dcSJoerg Wunsch /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 31de7b4b8SPedro F. Giffuni * 4ad7cf975SJoerg Wunsch * Copyright (C) 1996 5ad7cf975SJoerg Wunsch * David L. Nugent. All rights reserved. 6d6f907dcSJoerg Wunsch * 7d6f907dcSJoerg Wunsch * Redistribution and use in source and binary forms, with or without 8d6f907dcSJoerg Wunsch * modification, are permitted provided that the following conditions 9d6f907dcSJoerg Wunsch * are met: 10d6f907dcSJoerg Wunsch * 1. Redistributions of source code must retain the above copyright 11ad7cf975SJoerg Wunsch * notice, this list of conditions and the following disclaimer. 12d6f907dcSJoerg Wunsch * 2. Redistributions in binary form must reproduce the above copyright 13d6f907dcSJoerg Wunsch * notice, this list of conditions and the following disclaimer in the 14d6f907dcSJoerg Wunsch * documentation and/or other materials provided with the distribution. 15d6f907dcSJoerg Wunsch * 16ad7cf975SJoerg Wunsch * THIS SOFTWARE IS PROVIDED BY DAVID L. NUGENT AND CONTRIBUTORS ``AS IS'' AND 17d6f907dcSJoerg Wunsch * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18d6f907dcSJoerg Wunsch * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19ad7cf975SJoerg Wunsch * ARE DISCLAIMED. IN NO EVENT SHALL DAVID L. NUGENT OR CONTRIBUTORS BE LIABLE 20d6f907dcSJoerg Wunsch * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21d6f907dcSJoerg Wunsch * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22d6f907dcSJoerg Wunsch * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23d6f907dcSJoerg Wunsch * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24d6f907dcSJoerg Wunsch * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25d6f907dcSJoerg Wunsch * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26d6f907dcSJoerg Wunsch * SUCH DAMAGE. 27d6f907dcSJoerg Wunsch */ 28d6f907dcSJoerg Wunsch 29d6f907dcSJoerg Wunsch #ifndef _PSDATE_H_ 30d6f907dcSJoerg Wunsch #define _PSDATE_H_ 31d6f907dcSJoerg Wunsch 32d6f907dcSJoerg Wunsch #include <time.h> 33d6f907dcSJoerg Wunsch #include <sys/cdefs.h> 34d6f907dcSJoerg Wunsch 35d6f907dcSJoerg Wunsch __BEGIN_DECLS 36d30f122fSEugene Grosbein int numerics(char const * str); 37379e7b73SAlfred Perlstein time_t parse_date(time_t dt, char const * str); 38379e7b73SAlfred Perlstein void print_date(char *buf, time_t t, int dotime); 39d6f907dcSJoerg Wunsch __END_DECLS 40d6f907dcSJoerg Wunsch 41d6f907dcSJoerg Wunsch #endif /* !_PSDATE_H_ */ 42