glib-2.0 Reference Manual

Synopsis

public class Date : Boxed  {
    public                              Date                      (  ) ;
    public                              Date.dmy                  ( DateDay             day,
                                                                    DateMonth           month,
                                                                    DateYear            year ) ;
    public                              Date.julian               ( uint                julian_day ) ;


    public    void                      clear                     ( uint                n_dates = ÿ% ) ;
    public    void                      set_day                   ( DateDay             day ) ;
    public    void                      set_month                 ( DateMonth           month ) ;
    public    void                      set_year                  ( DateYear            year ) ;
    public    void                      set_dmy                   ( DateDay             day,
                                                                    DateMonth           month,
                                                                    DateYear            y ) ;
    public    void                      set_julian                ( uint                julian_day ) ;
    public    void                      set_time_val              ( TimeVal             timeval ) ;
    public    void                      set_parse                 ( string              str ) ;
    public    void                      add_days                  ( uint                n_days ) ;
    public    void                      subtract_days             ( uint                n_days ) ;
    public    void                      add_months                ( uint                n_months ) ;
    public    void                      subtract_months           ( uint                n_months ) ;
    public    void                      add_years                 ( uint                n_years ) ;
    public    void                      subtract_years            ( uint                n_years ) ;
    public    int                       days_between              ( Date                date2 ) ;
    public    int                       compare                   ( Date                rhs ) ;
    public    void                      clamp                     ( Date                min_date,
                                                                    Date                max_date ) ;
    public    void                      order                     ( Date                date2 ) ;
    public    DateDay                   get_day                   (  ) ;
    public    DateMonth                 get_month                 (  ) ;
    public    DateYear                  get_year                  (  ) ;
    public    uint                      get_julian                (  ) ;
    public    DateWeekday               get_weekday               (  ) ;
    public    uint                      get_day_of_year           (  ) ;
    public    bool                      is_first_of_month         (  ) ;
    public    bool                      is_last_of_month          (  ) ;
    public    uint                      get_monday_week_of_year   (  ) ;
    public    uint                      get_sunday_week_of_year   (  ) ;
    public    uint                      get_iso8601_week_of_year  (  ) ;
    public    size_t                    strftime                  ( char[]              s,
                                                                    string              format ) ;
    public    bool                      valid                     (  ) ;
    public    static uchar              get_days_in_month         ( DateMonth           month,
                                                                    DateYear            year ) ;
    public    static bool               valid_day                 ( DateDay             day ) ;
    public    static bool               valid_dmy                 ( DateDay             day,
                                                                    DateMonth           month,
                                                                    DateYear            year ) ;
    public    static bool               valid_julian              ( uint                julian_date ) ;
    public    static bool               valid_weekday             ( DateWeekday         weekday ) ;
}

Date Description

Details

Constructor Details

Date ()
    public                              Date                      (  ) ;		

Date.dmy ()
    public                              Date.dmy                  ( DateDay             day,
                                                                    DateMonth           month,
                                                                    DateYear            year ) ;		

Date.julian ()
    public                              Date.julian               ( uint                julian_day ) ;		

Field Details

Signal Details

Property Details

Method Details

clear ()
    public    void                      clear                     ( uint                n_dates = ÿ% ) ;		

set_day ()
    public    void                      set_day                   ( DateDay             day ) ;		

set_month ()
    public    void                      set_month                 ( DateMonth           month ) ;		

set_year ()
    public    void                      set_year                  ( DateYear            year ) ;		

set_dmy ()
    public    void                      set_dmy                   ( DateDay             day,
                                                                    DateMonth           month,
                                                                    DateYear            y ) ;		

set_julian ()
    public    void                      set_julian                ( uint                julian_day ) ;		

set_time_val ()
    public    void                      set_time_val              ( TimeVal             timeval ) ;		

set_parse ()
    public    void                      set_parse                 ( string              str ) ;		

add_days ()
    public    void                      add_days                  ( uint                n_days ) ;		

subtract_days ()
    public    void                      subtract_days             ( uint                n_days ) ;		

add_months ()
    public    void                      add_months                ( uint                n_months ) ;		

subtract_months ()
    public    void                      subtract_months           ( uint                n_months ) ;		

add_years ()
    public    void                      add_years                 ( uint                n_years ) ;		

subtract_years ()
    public    void                      subtract_years            ( uint                n_years ) ;		

days_between ()
    public    int                       days_between              ( Date                date2 ) ;		

compare ()
    public    int                       compare                   ( Date                rhs ) ;		

clamp ()
    public    void                      clamp                     ( Date                min_date,
                                                                    Date                max_date ) ;		

order ()
    public    void                      order                     ( Date                date2 ) ;		

get_day ()
    public    DateDay                   get_day                   (  ) ;		

get_month ()
    public    DateMonth                 get_month                 (  ) ;		

get_year ()
    public    DateYear                  get_year                  (  ) ;		

get_julian ()
    public    uint                      get_julian                (  ) ;		

get_weekday ()
    public    DateWeekday               get_weekday               (  ) ;		

get_day_of_year ()
    public    uint                      get_day_of_year           (  ) ;		

is_first_of_month ()
    public    bool                      is_first_of_month         (  ) ;		

is_last_of_month ()
    public    bool                      is_last_of_month          (  ) ;		

get_monday_week_of_year ()
    public    uint                      get_monday_week_of_year   (  ) ;		

get_sunday_week_of_year ()
    public    uint                      get_sunday_week_of_year   (  ) ;		

get_iso8601_week_of_year ()
    public    uint                      get_iso8601_week_of_year  (  ) ;		

strftime ()
    public    size_t                    strftime                  ( char[]              s,
                                                                    string              format ) ;		

valid ()
    public    bool                      valid                     (  ) ;		

get_days_in_month ()
    public    static uchar              get_days_in_month         ( DateMonth           month,
                                                                    DateYear            year ) ;		

valid_day ()
    public    static bool               valid_day                 ( DateDay             day ) ;		

valid_dmy ()
    public    static bool               valid_dmy                 ( DateDay             day,
                                                                    DateMonth           month,
                                                                    DateYear            year ) ;		

valid_julian ()
    public    static bool               valid_julian              ( uint                julian_date ) ;		

valid_weekday ()
    public    static bool               valid_weekday             ( DateWeekday         weekday ) ;		


Created by Valadoc