forked from tada/pljava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTime.h
More file actions
49 lines (42 loc) · 1.14 KB
/
Copy pathTime.h
File metadata and controls
49 lines (42 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* Copyright (c) 2004, 2005, 2006 TADA AB - Taby Sweden
* Distributed under the terms shown in the file COPYRIGHT
* found in the root folder of this project or at
* http://eng.tada.se/osprojects/COPYRIGHT.html
*
* @author Thomas Hallgren
*/
#ifndef __pljava_type_Time_h
#define __pljava_type_Time_h
#include "pljava/type/Type.h"
#ifdef __cplusplus
extern "C" {
#endif
/*****************************************************************
* The Time java class represents the native Time or TimeTZ.
*
* @author Thomas Hallgren
*****************************************************************/
#include <utils/timestamp.h>
/**
* The PostgreSQL TimeTzADT when configured with --enable-integer-datetimes
*/
typedef struct
{
int64 time; /* all time units other than months and
* years */
int32 zone; /* numeric time zone, in seconds */
} TimeTzADT_id;
/**
* The PostgreSQL TimeTzADT when configured without --enable-integer-datetimes
*/
typedef struct
{
double time; /* all time units other than months and
* years */
int32 zone; /* numeric time zone, in seconds */
} TimeTzADT_dd;
#ifdef __cplusplus
}
#endif
#endif