Amiga Developer Site by i n n o i d e a | MorphOS | Amiga Developers | Compilers | Documents | Dev-HardFile v1.11 for UAE / real Amiga - readme - shot) | Unique/All Visitors: 77257/570053
Search manual for function in the   
MUI/Calendar.mcc

    Calendar package is copyright 2004 by Alfonso Ranieri.
    All Rights Are Reserved.

    These classes are free for users: they don't have to pay
    anything; they are not free for developers: I want to receive
    a registered copy of your program if it uses them.

    Calendar.mcc is a MUIC_Group subclass.

    Calenda.mcc allows to easily define a date in the range 
    1-gen-1752, 31-dic-2400.

    A Calendar object always contains a valid date as a Gregorian
    number.
    
    You may specify a date at any time via 
        MUIA_Calendar_Greg
        MUIA_Calendar_Day
        MUIA_Calendar_Month
        MUIA_Calendar_Year
    
    The default date is the current system date (today).

    If you specify MUIA_Calendar_Greg, that is rounded and used
    as the current date.

    If you specify any of MUIA_Calendar_Day, MUIA_Calendar_Month
    and MUIA_Calendar_Year, their value are rounded and used as
    the current date.
    
    So, if today is 2-feb-2004, after
    
    cal = CalendarObject,
        MUIA_CAlendar_Day, 20,
    End;
    
    the date of "cal" is 20-feb-2004.

    You may set the date to today at any time using
    MUIM_Calendar_Today.

    You may add days, monthes and year at the current date at any
    time via MUIM_Calendar_AddDay, MUIM_Calendar_AddMonth and
    MUIM_Calendar_AddYear.

    The resultant dates are rounded to the most reasonable
    result, so if the current date is 30-apr-2004, after a
    DoMethod(obj,MUIM_Calendar_AddMonth,-2), the resultant date
    is 29-apr-2004.

    Note that you should always store your your dates as ULONG
    Gregorian numbers: no method to parse a date and to produce a
    Gregorian number is actually implemented.

    Because of in your program you would like to handle with
    Gregorian dates outside Calendar.mcc, a small linker library,
    the same used in Calendar.mcc, is included in Calendar.mcc
    archive, so that you may reuse its functions.

    Calendar.mcc reads at startup the file ENVARC:CALMCCHOLYDAYS.
    The lines of the file are parsed with the template
    DAY/A/N,MONTH/A/N,A=ANNIVERSARY/S so that you you may specify
    your holidays and anniversaries.
    
    In the following the attribute scheme is ISGN
    


20050129230614 - Diego Casorran - for (MUI/Calendar.mcc)
    To convert a date to a valid format us CALValidateDate().

    To use a Calendar.mcc funtion, you must can:

    - open Calendar.mmc version 18 or higher !!!
      struct Library *CalendarBase;
      CalendarBase = OpenLibrary("MUI/Calendar.mcc",18);

    - if you created a Calendar.mcc object with MUIA_Calendar_MinVer 18 !!!
      struct Library *CalendarBase;
      get(calObj,MUIA_Calendar_Base,&CalendarBase);

    - if you subclassed Calendar.mcc:
      struct Library *CalendarBase;
      CalendarBase = calendarSubclass->mcc_UserData;

Logo by Emeric/SH
MUI/Calendar.mcc

No examples found...


Functions with "C":
CALDateToGreg
CALDateWeekday
CALFormatDate
CALGetDay
CALGetEaster
CALGetJulian
CALGetMonth
CALGetMonthDays
CALGetToday
CALGetYear
CALGregToDate
CALGregWeekday
CALIsLeap
CALValidateDate
COMPATIBILITY
Calendar.mcc
Cclist.mui
Coloradjust.mui
Colorfield.mui
CompactWindow.mcc
Configdata.mui
Cycle.mui

Last 15 uploaded Examples:

20071229151342 AmiSSL/X509_STORE_CTX_cleanup
20070708011052 GeekGadgets/getlogin
20060705053954 AmigaOS/OpenWorkbenchObjectA
20050801035639 SDL/SDL_Surface
20050727092732 BlitzBasic/LSL
20050718102843 SDL/SDL_WarpMouse
20050718072844 GeekGadgets/fread
20050714051528 SDL/SDL_ActiveEvent
20050714051514 SDL/SDL_ActiveEvent
20050701171401 GeekGadgets/errno
20050701171347 GeekGadgets/errno
20050627101951 SDL/SDL_FreeSurface
20050623152729 GeekGadgets/fork
20050619153102 GeekGadgets/tcdrain
20050615182849 AmigaOS/OpenScreen

Last 25 posts:

20050613235812 SDL/SDL_SetGammaRamp
20050526065000 AmiTCP/unistd.h
20050413041558 AmiSSL/X509_STORE_set_default_paths
20050409155750 AmigaDOS/Status
20050129230614 MUI/Calendar.mcc
20050128185620 GeekGadgets/hstrerror
20041126154558 BlitzBasic/LoadBank
20041123170704 GeekGadgets/gcvt
20041105222909 AmigaOS/CheckSignal
20040712190839 SDL/SDL_SetVideoMode
20040627090529 SDL/SDL_Init
20040519133228 GeekGadgets/fork
20040407124555 AmigaOS/AllocMem
20040403101120 GeekGadgets/inet_ntoa
20040327172814 GeekGadgets/random
20040327172714 GeekGadgets/srandom
20040313211937 BlitzBasic/ANALYZEDISK
20040303135237 GeekGadgets/mktemp
20040301131355 GeekGadgets/realpath
20040301123615 GeekGadgets/gcvt
20040301114000 GeekGadgets/htonl
20040301100209 GeekGadgets/realpath
20040229095437 GeekGadgets/time
20040211132618 GeekGadgets/getpid
20040209102818 AmigaOS/OpenWindow




Amiga.sf
AMIGIFT

Locations of visitors to this page

Page took 0.807389 seconds to load.