Function

GLibDatenew_julian

Declaration

GDate*
g_date_new_julian (
  guint32 julian_day
)

Description

Like g_date_new(), but also sets the value of the date. Assuming the Julian day number you pass in is valid (greater than 0, less than an unreasonably large number), the returned date will be valid.

Parameters

julian_day guint32
 

Days since January 1, Year 1

Return value

Returns: GDate
 

A newly-allocated GDate initialized with julian_day.

 The caller of the function takes ownership of the data, and is responsible for freeing it.