time.h File Reference

TIME CONVERSION. More...

This graph shows which files directly or indirectly include this file:

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

#define _CLOCK_T

Definition at line 38 of file time.h.

◆ _SIZE_T

#define _SIZE_T

Definition at line 28 of file time.h.

◆ _TIME_T

#define _TIME_T

Definition at line 33 of file time.h.

◆ CLK_TCK

#define CLK_TCK   18.2

Definition at line 43 of file time.h.

◆ CLOCKS_PER_SEC

#define CLOCKS_PER_SEC   18.2

Definition at line 42 of file time.h.

Typedef Documentation

◆ clock_t

typedef long clock_t

Definition at line 39 of file time.h.

◆ size_t

typedef unsigned size_t

Definition at line 29 of file time.h.

◆ time_t

typedef long time_t

Definition at line 34 of file time.h.

Function Documentation

◆ dostounix()

long dostounix ( struct date d,
struct time t 
)

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.

Here is the caller graph for this function:

◆ unixtodos()

void unixtodos ( long  time,
struct date d,
struct time t 
)

converts from UNIX-format time

Parameters
time- time in Unix format. d - date struct to store conversion t - time struct to store conversion
Remarks
Converts a UNIX-format time into date and time.

Definition at line 82 of file timecvt.c.

Here is the caller graph for this function:

Variable Documentation

◆ TIME

volatile bank1 time_t TIME

Timer in unix format.

Definition at line 91 of file jadeku.c.

◆ timezone

bank1 long timezone

Definition at line 28 of file timecvt.c.