✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server.blackpussy.asia ​🇻​♯➤ 5.14.0-611.20.1.el9_7.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 163.245.207.76 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗞 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ mail,mb_send_mail
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /usr/include/glib-2.0/glib//gdate.h
/* GLIB - Library of useful routines for C programming
 * Copyright (C) 1995-1997  Peter Mattis, Spencer Kimball and Josh MacDonald
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
 */

/*
 * Modified by the GLib Team and others 1997-2000.  See the AUTHORS
 * file for a list of people on the GLib Team.  See the ChangeLog
 * files for a list of changes.  These files are distributed with
 * GLib at ftp://ftp.gtk.org/pub/gtk/.
 */

#ifndef __G_DATE_H__
#define __G_DATE_H__

#if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
#error "Only <glib.h> can be included directly."
#endif

#include <time.h>

#include <glib/gtypes.h>
#include <glib/gquark.h>

G_BEGIN_DECLS

/* GDate
 *
 * Date calculations (not time for now, to be resolved). These are a
 * mutant combination of Steffen Beyer's DateCalc routines
 * (http://www.perl.com/CPAN/authors/id/STBEY/) and Jon Trowbridge's
 * date routines (written for in-house software).  Written by Havoc
 * Pennington <hp@pobox.com>
 */

typedef gint32  GTime GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime);
typedef guint16 GDateYear;
typedef guint8  GDateDay;   /* day of the month */
typedef struct _GDate GDate;

/* enum used to specify order of appearance in parsed date strings */
typedef enum
{
  G_DATE_DAY   = 0,
  G_DATE_MONTH = 1,
  G_DATE_YEAR  = 2
} GDateDMY;

/* actual week and month values */
typedef enum
{
  G_DATE_BAD_WEEKDAY  = 0,
  G_DATE_MONDAY       = 1,
  G_DATE_TUESDAY      = 2,
  G_DATE_WEDNESDAY    = 3,
  G_DATE_THURSDAY     = 4,
  G_DATE_FRIDAY       = 5,
  G_DATE_SATURDAY     = 6,
  G_DATE_SUNDAY       = 7
} GDateWeekday;
typedef enum
{
  G_DATE_BAD_MONTH = 0,
  G_DATE_JANUARY   = 1,
  G_DATE_FEBRUARY  = 2,
  G_DATE_MARCH     = 3,
  G_DATE_APRIL     = 4,
  G_DATE_MAY       = 5,
  G_DATE_JUNE      = 6,
  G_DATE_JULY      = 7,
  G_DATE_AUGUST    = 8,
  G_DATE_SEPTEMBER = 9,
  G_DATE_OCTOBER   = 10,
  G_DATE_NOVEMBER  = 11,
  G_DATE_DECEMBER  = 12
} GDateMonth;

#define G_DATE_BAD_JULIAN 0U
#define G_DATE_BAD_DAY    0U
#define G_DATE_BAD_YEAR   0U

/* Note: directly manipulating structs is generally a bad idea, but
 * in this case it's an *incredibly* bad idea, because all or part
 * of this struct can be invalid at any given time. Use the functions,
 * or you will get hosed, I promise.
 */
struct _GDate
{
  guint julian_days : 32; /* julian days representation - we use a
                           *  bitfield hoping that 64 bit platforms
                           *  will pack this whole struct in one big
                           *  int
                           */

  guint julian : 1;    /* julian is valid */
  guint dmy    : 1;    /* dmy is valid */

  /* DMY representation */
  guint day    : 6;
  guint month  : 4;
  guint year   : 16;
};

/* g_date_new() returns an invalid date, you then have to _set() stuff
 * to get a usable object. You can also allocate a GDate statically,
 * then call g_date_clear() to initialize.
 */
GLIB_AVAILABLE_IN_ALL
GDate*       g_date_new                   (void);
GLIB_AVAILABLE_IN_ALL
GDate*       g_date_new_dmy               (GDateDay     day,
                                           GDateMonth   month,
                                           GDateYear    year);
GLIB_AVAILABLE_IN_ALL
GDate*       g_date_new_julian            (guint32      julian_day);
GLIB_AVAILABLE_IN_ALL
void         g_date_free                  (GDate       *date);
GLIB_AVAILABLE_IN_2_56
GDate*       g_date_copy                  (const GDate *date);

/* check g_date_valid() after doing an operation that might fail, like
 * _parse.  Almost all g_date operations are undefined on invalid
 * dates (the exceptions are the mutators, since you need those to
 * return to validity).
 */
GLIB_AVAILABLE_IN_ALL
gboolean     g_date_valid                 (const GDate *date);
GLIB_AVAILABLE_IN_ALL
gboolean     g_date_valid_day             (GDateDay     day) G_GNUC_CONST;
GLIB_AVAILABLE_IN_ALL
gboolean     g_date_valid_month           (GDateMonth month) G_GNUC_CONST;
GLIB_AVAILABLE_IN_ALL
gboolean     g_date_valid_year            (GDateYear  year) G_GNUC_CONST;
GLIB_AVAILABLE_IN_ALL
gboolean     g_date_valid_weekday         (GDateWeekday weekday) G_GNUC_CONST;
GLIB_AVAILABLE_IN_ALL
gboolean     g_date_valid_julian          (guint32 julian_date) G_GNUC_CONST;
GLIB_AVAILABLE_IN_ALL
gboolean     g_date_valid_dmy             (GDateDay     day,
                                           GDateMonth   month,
                                           GDateYear    year) G_GNUC_CONST;

GLIB_AVAILABLE_IN_ALL
GDateWeekday g_date_get_weekday           (const GDate *date);
GLIB_AVAILABLE_IN_ALL
GDateMonth   g_date_get_month             (const GDate *date);
GLIB_AVAILABLE_IN_ALL
GDateYear    g_date_get_year              (const GDate *date);
GLIB_AVAILABLE_IN_ALL
GDateDay     g_date_get_day               (const GDate *date);
GLIB_AVAILABLE_IN_ALL
guint32      g_date_get_julian            (const GDate *date);
GLIB_AVAILABLE_IN_ALL
guint        g_date_get_day_of_year       (const GDate *date);
/* First monday/sunday is the start of week 1; if we haven't reached
 * that day, return 0. These are not ISO weeks of the year; that
 * routine needs to be added.
 * these functions return the number of weeks, starting on the
 * corrsponding day
 */
GLIB_AVAILABLE_IN_ALL
guint        g_date_get_monday_week_of_year (const GDate *date);
GLIB_AVAILABLE_IN_ALL
guint        g_date_get_sunday_week_of_year (const GDate *date);
GLIB_AVAILABLE_IN_ALL
guint        g_date_get_iso8601_week_of_year (const GDate *date);

/* If you create a static date struct you need to clear it to get it
 * in a safe state before use. You can clear a whole array at
 * once with the ndates argument.
 */
GLIB_AVAILABLE_IN_ALL
void         g_date_clear                 (GDate       *date,
                                           guint        n_dates);

/* The parse routine is meant for dates typed in by a user, so it
 * permits many formats but tries to catch common typos. If your data
 * needs to be strictly validated, it is not an appropriate function.
 */
GLIB_AVAILABLE_IN_ALL
void         g_date_set_parse             (GDate       *date,
                                           const gchar *str);
GLIB_AVAILABLE_IN_ALL
void         g_date_set_time_t            (GDate       *date,
					   time_t       timet);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
GLIB_DEPRECATED_IN_2_62_FOR(g_date_set_time_t)
void         g_date_set_time_val          (GDate       *date,
					   GTimeVal    *timeval);
GLIB_DEPRECATED_FOR(g_date_set_time_t)
void         g_date_set_time              (GDate       *date,
                                           GTime        time_);
G_GNUC_END_IGNORE_DEPRECATIONS
GLIB_AVAILABLE_IN_ALL
void         g_date_set_month             (GDate       *date,
                                           GDateMonth   month);
GLIB_AVAILABLE_IN_ALL
void         g_date_set_day               (GDate       *date,
                                           GDateDay     day);
GLIB_AVAILABLE_IN_ALL
void         g_date_set_year              (GDate       *date,
                                           GDateYear    year);
GLIB_AVAILABLE_IN_ALL
void         g_date_set_dmy               (GDate       *date,
                                           GDateDay     day,
                                           GDateMonth   month,
                                           GDateYear    y);
GLIB_AVAILABLE_IN_ALL
void         g_date_set_julian            (GDate       *date,
                                           guint32      julian_date);
GLIB_AVAILABLE_IN_ALL
gboolean     g_date_is_first_of_month     (const GDate *date);
GLIB_AVAILABLE_IN_ALL
gboolean     g_date_is_last_of_month      (const GDate *date);

/* To go forward by some number of weeks just go forward weeks*7 days */
GLIB_AVAILABLE_IN_ALL
void         g_date_add_days              (GDate       *date,
                                           guint        n_days);
GLIB_AVAILABLE_IN_ALL
void         g_date_subtract_days         (GDate       *date,
                                           guint        n_days);

/* If you add/sub months while day > 28, the day might change */
GLIB_AVAILABLE_IN_ALL
void         g_date_add_months            (GDate       *date,
                                           guint        n_months);
GLIB_AVAILABLE_IN_ALL
void         g_date_subtract_months       (GDate       *date,
                                           guint        n_months);

/* If it's feb 29, changing years can move you to the 28th */
GLIB_AVAILABLE_IN_ALL
void         g_date_add_years             (GDate       *date,
                                           guint        n_years);
GLIB_AVAILABLE_IN_ALL
void         g_date_subtract_years        (GDate       *date,
                                           guint        n_years);
GLIB_AVAILABLE_IN_ALL
gboolean     g_date_is_leap_year          (GDateYear    year) G_GNUC_CONST;
GLIB_AVAILABLE_IN_ALL
guint8       g_date_get_days_in_month     (GDateMonth   month,
                                           GDateYear    year) G_GNUC_CONST;
GLIB_AVAILABLE_IN_ALL
guint8       g_date_get_monday_weeks_in_year  (GDateYear    year) G_GNUC_CONST;
GLIB_AVAILABLE_IN_ALL
guint8       g_date_get_sunday_weeks_in_year  (GDateYear    year) G_GNUC_CONST;

/* Returns the number of days between the two dates.  If date2 comes
   before date1, a negative value is return. */
GLIB_AVAILABLE_IN_ALL
gint         g_date_days_between          (const GDate *date1,
					   const GDate *date2);

/* qsort-friendly (with a cast...) */
GLIB_AVAILABLE_IN_ALL
gint         g_date_compare               (const GDate *lhs,
                                           const GDate *rhs);
GLIB_AVAILABLE_IN_ALL
void         g_date_to_struct_tm          (const GDate *date,
                                           struct tm   *tm);

GLIB_AVAILABLE_IN_ALL
void         g_date_clamp                 (GDate *date,
					   const GDate *min_date,
					   const GDate *max_date);

/* Swap date1 and date2's values if date1 > date2. */
GLIB_AVAILABLE_IN_ALL
void         g_date_order                 (GDate *date1, GDate *date2);

/* Just like strftime() except you can only use date-related formats.
 *   Using a time format is undefined.
 */
GLIB_AVAILABLE_IN_ALL
gsize        g_date_strftime              (gchar       *s,
                                           gsize        slen,
                                           const gchar *format,
                                           const GDate *date);

#define g_date_weekday 			g_date_get_weekday GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_date_get_weekday)
#define g_date_month 			g_date_get_month GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_date_get_month)
#define g_date_year 			g_date_get_year GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_date_get_year)
#define g_date_day 			g_date_get_day GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_date_get_day)
#define g_date_julian 			g_date_get_julian GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_date_get_julian)
#define g_date_day_of_year 		g_date_get_day_of_year GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_date_get_day_of_year)
#define g_date_monday_week_of_year 	g_date_get_monday_week_of_year GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_date_get_monday_week_of_year)
#define g_date_sunday_week_of_year 	g_date_get_sunday_week_of_year GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_date_get_sunday_week_of_year)
#define g_date_days_in_month 		g_date_get_days_in_month GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_date_get_days_in_month)
#define g_date_monday_weeks_in_year 	g_date_get_monday_weeks_in_year GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_date_get_monday_weeks_in_year)
#define g_date_sunday_weeks_in_year	g_date_get_sunday_weeks_in_year GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_date_get_sunday_weeks_in_year)

G_END_DECLS

#endif /* __G_DATE_H__ */

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
1 Jan 1970 12.00 AM
root / root
0
deprecated
--
10 Sep 2026 4.57 AM
root / root
0755
galloca.h
3.82 KB
19 Aug 2021 3.27 PM
root / root
0644
garray.h
11.118 KB
19 Aug 2021 3.27 PM
root / root
0644
gasyncqueue.h
5.592 KB
19 Aug 2021 3.27 PM
root / root
0644
gatomic.h
26.572 KB
19 Aug 2021 3.27 PM
root / root
0644
gbacktrace.h
2.728 KB
19 Aug 2021 3.27 PM
root / root
0644
gbase64.h
2.269 KB
19 Aug 2021 3.27 PM
root / root
0644
gbitlock.h
2.834 KB
19 Aug 2021 3.27 PM
root / root
0644
gbookmarkfile.h
12.329 KB
19 Aug 2021 3.27 PM
root / root
0644
gbytes.h
3.256 KB
19 Aug 2021 3.27 PM
root / root
0644
gcharset.h
1.541 KB
19 Aug 2021 3.27 PM
root / root
0644
gchecksum.h
3.773 KB
19 Aug 2021 3.27 PM
root / root
0644
gconvert.h
5.784 KB
19 Aug 2021 3.27 PM
root / root
0644
gdataset.h
6.099 KB
19 Aug 2021 3.27 PM
root / root
0644
gdate.h
12.129 KB
19 Aug 2021 3.27 PM
root / root
0644
gdatetime.h
12.439 KB
19 Aug 2021 3.27 PM
root / root
0644
gdir.h
1.603 KB
19 Aug 2021 3.27 PM
root / root
0644
genviron.h
2.309 KB
19 Aug 2021 3.27 PM
root / root
0644
gerror.h
10.879 KB
19 Aug 2021 3.27 PM
root / root
0644
gfileutils.h
7.682 KB
19 Aug 2021 3.27 PM
root / root
0644
ggettext.h
2.367 KB
19 Aug 2021 3.27 PM
root / root
0644
ghash.h
7.701 KB
19 Aug 2021 3.27 PM
root / root
0644
ghmac.h
3.388 KB
19 Aug 2021 3.27 PM
root / root
0644
ghook.h
6.209 KB
19 Aug 2021 3.27 PM
root / root
0644
ghostutils.h
1.422 KB
19 Aug 2021 3.27 PM
root / root
0644
gi18n-lib.h
1.338 KB
19 Aug 2021 3.27 PM
root / root
0644
gi18n.h
1.14 KB
19 Aug 2021 3.27 PM
root / root
0644
giochannel.h
13.627 KB
19 Aug 2021 3.27 PM
root / root
0644
gkeyfile.h
14.563 KB
19 Aug 2021 3.27 PM
root / root
0644
glib-autocleanups.h
4.788 KB
19 Aug 2021 3.27 PM
root / root
0644
glist.h
6.768 KB
19 Aug 2021 3.27 PM
root / root
0644
gmacros.h
45.118 KB
19 Aug 2021 3.27 PM
root / root
0644
gmain.h
27.551 KB
19 Aug 2021 3.27 PM
root / root
0644
gmappedfile.h
1.939 KB
19 Aug 2021 3.27 PM
root / root
0644
gmarkup.h
10.621 KB
19 Aug 2021 3.27 PM
root / root
0644
gmem.h
14.509 KB
19 Aug 2021 3.27 PM
root / root
0644
gmessages.h
26.556 KB
19 Aug 2021 3.27 PM
root / root
0644
gnode.h
8.496 KB
19 Aug 2021 3.27 PM
root / root
0644
goption.h
15.722 KB
19 Aug 2021 3.27 PM
root / root
0644
gpattern.h
1.74 KB
19 Aug 2021 3.27 PM
root / root
0644
gpoll.h
4.028 KB
19 Aug 2021 3.27 PM
root / root
0644
gprimes.h
1.654 KB
19 Aug 2021 3.27 PM
root / root
0644
gprintf.h
1.938 KB
19 Aug 2021 3.27 PM
root / root
0644
gqsort.h
1.464 KB
19 Aug 2021 3.27 PM
root / root
0644
gquark.h
2.625 KB
19 Aug 2021 3.27 PM
root / root
0644
gqueue.h
7.568 KB
19 Aug 2021 3.27 PM
root / root
0644
grand.h
3.106 KB
19 Aug 2021 3.27 PM
root / root
0644
grcbox.h
3.898 KB
19 Aug 2021 3.27 PM
root / root
0644
grefcount.h
3.895 KB
19 Aug 2021 3.27 PM
root / root
0644
grefstring.h
1.824 KB
19 Aug 2021 3.27 PM
root / root
0644
gregex.h
27.437 KB
19 Aug 2021 3.27 PM
root / root
0644
gscanner.h
8.653 KB
19 Aug 2021 3.27 PM
root / root
0644
gsequence.h
8.604 KB
19 Aug 2021 3.27 PM
root / root
0644
gshell.h
1.711 KB
19 Aug 2021 3.27 PM
root / root
0644
gslice.h
4.478 KB
19 Aug 2021 3.27 PM
root / root
0644
gslist.h
6.397 KB
19 Aug 2021 3.27 PM
root / root
0644
gspawn.h
12.893 KB
19 Aug 2021 3.27 PM
root / root
0644
gstdio.h
4.989 KB
19 Aug 2021 3.27 PM
root / root
0644
gstrfuncs.h
13.142 KB
19 Aug 2021 3.27 PM
root / root
0644
gstring.h
8.136 KB
19 Aug 2021 3.27 PM
root / root
0644
gstringchunk.h
2.08 KB
19 Aug 2021 3.27 PM
root / root
0644
gstrvbuilder.h
1.575 KB
19 Aug 2021 3.27 PM
root / root
0644
gtestutils.h
34.314 KB
19 Aug 2021 3.27 PM
root / root
0644
gthread.h
18.318 KB
19 Aug 2021 3.27 PM
root / root
0644
gthreadpool.h
3.734 KB
19 Aug 2021 3.27 PM
root / root
0644
gtimer.h
2.516 KB
19 Aug 2021 3.27 PM
root / root
0644
gtimezone.h
3.813 KB
19 Aug 2021 3.27 PM
root / root
0644
gtrashstack.h
1.861 KB
19 Aug 2021 3.27 PM
root / root
0644
gtree.h
6.305 KB
19 Aug 2021 3.27 PM
root / root
0644
gtypes.h
20.035 KB
19 Aug 2021 3.27 PM
root / root
0644
gunicode.h
40.246 KB
19 Aug 2021 3.27 PM
root / root
0644
guri.h
16.061 KB
19 Aug 2021 3.27 PM
root / root
0644
gutils.h
14.218 KB
19 Aug 2021 3.27 PM
root / root
0644
guuid.h
1.261 KB
19 Aug 2021 3.27 PM
root / root
0644
gvariant.h
28.867 KB
19 Aug 2021 3.27 PM
root / root
0644
gvarianttype.h
12.934 KB
19 Aug 2021 3.27 PM
root / root
0644
gversion.h
1.935 KB
19 Aug 2021 3.27 PM
root / root
0644
gversionmacros.h
46.56 KB
8 Sep 2026 9.51 AM
root / root
0644
gwin32.h
4.558 KB
19 Aug 2021 3.27 PM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF