GLib.Date.new_julian

function new_julian(julian_day: Number(guint32)): GLib.Date {
    // Gjs wrapper for g_date_new_julian()
}
  

Like GLib.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.

julian_day

days since January 1, Year 1

Returns

a newly-allocated GLib.Date initialized with julian_day