Interval classes

Interval classes

Functions

Properties

gint day Read / Write
gint millisecond Read / Write
gint day Read / Write
gint month Read / Write
gint64 nanosecond Read / Write

Types and Values

Object Hierarchy

    GObject
    ├── GArrowDayMillisecond
    ╰── GArrowMonthDayNano

Includes

#include <arrow-glib/arrow-glib.h>

Description

GArrowDayMillisecond is the class for day and millisecond interval.

GArrowMonthDayNano is the class for month, day and nanosecond interval.

Functions

garrow_day_millisecond_new ()

GArrowDayMillisecond *
garrow_day_millisecond_new (gint32 day,
                            gint32 millisecond);

Parameters

day

A day part value.

 

millisecond

A millisecond part value.

 

Returns

A newly created GArrowDayMillisecond.

[nullable]

Since: 8.0.0


garrow_day_millisecond_equal ()

gboolean
garrow_day_millisecond_equal (GArrowDayMillisecond *day_millisecond,
                              GArrowDayMillisecond *other_day_millisecond);

Parameters

day_millisecond

A GArrowDayMillisecond.

 

other_day_millisecond

A GArrowDayMillisecond to be compared.

 

Returns

TRUE if both of them have the same data, FALSE otherwise.

Since: 8.0.0


garrow_day_millisecond_less_than ()

gboolean
garrow_day_millisecond_less_than (GArrowDayMillisecond *day_millisecond,
                                  GArrowDayMillisecond *other_day_millisecond);

Parameters

day_millisecond

A GArrowDayMillisecond.

 

other_day_millisecond

A GArrowDayMillisecond to be compared.

 

Returns

TRUE if the value is less than the other value, FALSE otherwise.

Since: 8.0.0


garrow_month_day_nano_new ()

GArrowMonthDayNano *
garrow_month_day_nano_new (gint32 month,
                           gint32 day,
                           gint64 nanosecond);

Parameters

month

A month part value.

 

day

A day part value.

 

nanosecond

The nanosecond value.

 

Returns

A newly created GArrowMonthDayNano.

[nullable]

Since: 8.0.0


garrow_month_day_nano_equal ()

gboolean
garrow_month_day_nano_equal (GArrowMonthDayNano *month_nano_day,
                             GArrowMonthDayNano *other_month_nano_day);

Parameters

month_nano_day

A GArrowMonthDayNano.

 

other_month_nano_day

A GArrowMonthDayNano to be compared.

 

Returns

TRUE if both of them have the same data, FALSE otherwise.

Since: 8.0.0

Types and Values

GARROW_TYPE_DAY_MILLISECOND

#define GARROW_TYPE_DAY_MILLISECOND (garrow_day_millisecond_get_type())

struct GArrowDayMillisecondClass

struct GArrowDayMillisecondClass {
  GObjectClass parent_class;
};

GARROW_TYPE_MONTH_DAY_NANO

#define GARROW_TYPE_MONTH_DAY_NANO (garrow_month_day_nano_get_type())

struct GArrowMonthDayNanoClass

struct GArrowMonthDayNanoClass {
  GObjectClass parent_class;
};

GArrowDayMillisecond

typedef struct _GArrowDayMillisecond GArrowDayMillisecond;

GArrowMonthDayNano

typedef struct _GArrowMonthDayNano GArrowMonthDayNano;

Property Details

The “day” property

  “day”                      gint

The day part value.

Owner: GArrowDayMillisecond

Flags: Read / Write

Default value: 0

Since: 8.0.0


The “millisecond” property

  “millisecond”              gint

The millisecond part value.

Owner: GArrowDayMillisecond

Flags: Read / Write

Default value: 0

Since: 8.0.0


The “day” property

  “day”                      gint

The day part value.

Owner: GArrowMonthDayNano

Flags: Read / Write

Default value: 0

Since: 8.0.0


The “month” property

  “month”                    gint

The month part value.

Owner: GArrowMonthDayNano

Flags: Read / Write

Default value: 0

Since: 8.0.0


The “nanosecond” property

  “nanosecond”               gint64

The nanosecond part value.

Owner: GArrowMonthDayNano

Flags: Read / Write

Default value: 0

Since: 8.0.0