Vuo
2.4.4
Loading...
Searching...
No Matches
node
vuo.time
VuoTime.h
Go to the documentation of this file.
1
10
#pragma once
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
16
#include "
VuoInteger.h
"
17
#include "
VuoReal.h
"
18
#include "
VuoWeekday.h
"
19
#include "
VuoText.h
"
20
#include "
VuoTimeFormat.h
"
21
#include "
VuoTimeUnit.h
"
22
23
#include <xlocale.h>
24
46
typedef
double
VuoTime
;
47
48
#define VuoTime_SUPPORTS_COMPARISON
49
#include "
VuoList_VuoTime.h
"
50
51
VuoTime
VuoTime_makeFromJson
(
struct
json_object *js);
52
struct
json_object *
VuoTime_getJson
(
const
VuoTime
value);
53
char
*
VuoTime_getSummary
(
const
VuoTime
value);
54
55
bool
VuoTime_areEqual
(
const
VuoTime
valueA,
const
VuoTime
valueB);
56
bool
VuoTime_isLessThan
(
const
VuoTime
valueA,
const
VuoTime
valueB);
57
58
bool
VuoTime_areEqualWithinTolerance
(
VuoList_VuoTime
times,
VuoReal
tolerance,
VuoTimeUnit
toleranceUnit);
59
bool
VuoTime_areTimesOfDayEqualWithinTolerance
(
VuoList_VuoTime
times,
VuoReal
tolerance,
VuoTimeUnit
toleranceUnit);
60
bool
VuoTime_isTimeOfDayLessThan
(
const
VuoTime
valueA,
const
VuoTime
valueB,
const
VuoTime
startOfDay);
61
62
VuoTime
VuoTime_getCurrent
(
void
);
63
VuoTime
VuoTime_make
(
VuoInteger
year,
VuoInteger
month,
VuoInteger
dayOfMonth,
VuoInteger
hour,
VuoInteger
minute,
VuoReal
second);
64
VuoTime
VuoTime_makeFromRFC822
(
const
char
*rfc822);
65
VuoTime
VuoTime_makeFromISO8601
(
const
char
*iso8601);
66
VuoTime
VuoTime_makeFromUnknownFormat
(
const
char
*str);
67
bool
VuoTime_getComponents
(
VuoTime
time,
VuoInteger
*year,
VuoInteger
*dayOfYear,
VuoInteger
*month,
VuoInteger
*dayOfMonth,
VuoInteger
*week,
VuoWeekday
*dayOfWeek,
VuoInteger
*hour,
VuoInteger
*minute,
VuoReal
*second)
VuoWarnUnusedResult
;
68
VuoTime
VuoTime_round
(
const
VuoTime
value,
const
VuoTimeUnit
unit,
const
int
roundingMethod);
69
VuoText
VuoTime_format
(
const
VuoTime
time,
const
VuoTimeFormat
format);
70
VuoText
VuoTime_formatWithLocale
(
const
VuoTime
time,
const
VuoTimeFormat
format, locale_t locale);
71
76
char
*
VuoTime_getString
(
const
VuoTime
value);
77
void
VuoTime_retain
(
VuoTime
value);
78
void
VuoTime_release
(
VuoTime
value);
80
85
#ifdef __cplusplus
86
}
87
#endif
Generated on Thu Nov 9 2023 16:59:30 for Vuo by
1.9.8