Vuo  1.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macros | Typedefs | Functions
VuoTime.h File Reference

Description

VuoTime C type definition.

Typedefs

typedef double VuoTime
 A date and time.
 

Functions

VuoTime VuoTime_makeFromJson (struct json_object *js)
 Decodes the JSON object js to create a new value.
 
struct json_objectVuoTime_getJson (const VuoTime value)
 Encodes value as a JSON object.
 
char * VuoTime_getSummary (const VuoTime value)
 Returns a compact string representation of value.
 
bool VuoTime_areEqual (const VuoTime valueA, const VuoTime valueB)
 Returns true if the two values are equal.
 
bool VuoTime_isLessThan (const VuoTime valueA, const VuoTime valueB)
 Returns true if valueA is less than valueB.
 
bool VuoTime_areEqualWithinTolerance (VuoList_VuoTime times, VuoReal tolerance, VuoTimeUnit toleranceUnit)
 Checks if the dates and times are all within a certain distance of each other (within 1 hour, within 8 hours, within 1 year, …).
 
bool VuoTime_areTimesOfDayEqualWithinTolerance (VuoList_VuoTime times, VuoReal tolerance, VuoTimeUnit toleranceUnit)
 Checks if the times are all within a certain distance of each other (within 1 minute, within 8 hours, …).
 
bool VuoTime_isTimeOfDayLessThan (const VuoTime valueA, const VuoTime valueB, const VuoTime startOfDay)
 Checks if time A is before B, ignoring the date component.
 
VuoTime VuoTime_getCurrent (void)
 Returns the current calendar date and time (seconds since 2001.01.01 @ 00:00:00 UTC).
 
VuoTime VuoTime_make (VuoInteger year, VuoInteger month, VuoInteger dayOfMonth, VuoInteger hour, VuoInteger minute, VuoReal second)
 Creates a date-time from component values.
 
VuoTime VuoTime_makeFromRFC822 (const char *rfc822)
 Creates a date-time from an RFC 822 date-time string.
 
bool VuoTime_getComponents (VuoTime time, VuoInteger *year, VuoInteger *dayOfYear, VuoInteger *month, VuoInteger *dayOfMonth, VuoInteger *week, VuoWeekday *dayOfWeek, VuoInteger *hour, VuoInteger *minute, VuoReal *second)
 For a given time (in UTC), converts it to the current local timezone, and splits it into its human-readable parts.
 
VuoTime VuoTime_round (const VuoTime value, const VuoTimeUnit unit, const int roundingMethod)
 Rounds to a nearby minute, hour, etc.
 
VuoText VuoTime_format (const VuoTime time, const VuoTimeFormat format)
 Outputs text containing a date and/or time, in the system's current locale.
 
VuoText VuoTime_formatWithLocale (const VuoTime time, const VuoTimeFormat format, const VuoText localeIdentifier)
 Outputs text containing a date and/or time.
 
VuoTime VuoTime_makeFromString (const char *str)
 Automatically generated function.
 
char * VuoTime_getString (const VuoTime value)
 Automatically generated function.
 
void VuoTime_retain (VuoTime value)
 Automatically generated function.
 
void VuoTime_release (VuoTime value)
 Automatically generated function.
 
#define VuoList_VuoTime_TYPE_DEFINED
 
typedef void * VuoList_VuoTime