TIME CONVERSION. More...
Go to the source code of this file.
Data Structures | |
struct | time |
struct | date |
struct | tm |
Macros | |
#define | _SIZE_T |
#define | _TIME_T |
#define | _CLOCK_T |
#define | CLOCKS_PER_SEC 18.2 |
#define | CLK_TCK 18.2 |
Typedefs | |
typedef unsigned | size_t |
typedef long | time_t |
typedef long | clock_t |
Functions | |
long | dostounix (struct date *d, struct time *t) |
void | unixtodos (long time, struct date *d, struct time *t) |
Variables | |
bank1 long | timezone |
volatile bank1 time_t | TIME |
Timer in unix format. More... | |
Detailed Description
TIME CONVERSION.
This file is part of JADEKU Portable ADQ device for Routines Control.
Copyright (C) 2002-2009, Hernan Monserrat hemonserrat<at>gmail<dot>com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file time.h.
Macro Definition Documentation
◆ _CLOCK_T
◆ _SIZE_T
◆ _TIME_T
◆ CLK_TCK
◆ CLOCKS_PER_SEC
Typedef Documentation
◆ clock_t
◆ size_t
◆ time_t
Function Documentation
◆ dostounix()
converts date and time to UNIX time format
- Parameters
-
d - date struct to convert t - time struct to convert
- Returns
- UNIX version of the given date and time.
- Remarks
- Converts a date and time (as returned from getdate and gettime) into UNIX-format time.
Definition at line 40 of file timecvt.c.