ProDomus Date Tools


Please note that a PD 1-Touch Date Tools, a major upgrade, replaces the DLL versions with the release of Clarion6.  This rewrite includes a number of new classes, templates, and source code not included in PD Date Tools which has been provided as DLL and LIB files through Clarion 5.5.

ProDomus Date Tools  provides developers with a full range of easily implemented internationalized date and scheduling functions.     

Features

Date Scrolling. With an array of alerted keys, dates may be scrolled by day, week, half month, month, same day of the month, first day of the month, last day of the month, first day of the year, last day of the year, quarter, same day of the quarter, year, same day of the year, first day of the first week of the year, and first day of the last day of the year. You may vary the list with each entry "object" to reflect the purpose of the particular entry.

pddt.gif (60986 bytes) Date Functions. In addition to the scrolling date functions, ProDomus Date Tools will calculate the week of the year according to local calculation rules, day of the week, days left in the year, business days, holidays, and days between dates based on a 30 day month
Date Rules. Rules for date calculations vary from country to country -- the US standard of Sunday being the first day of the week and the first week of the year being the one in which January 1 appears does not apply in most other countries. PDDT functions for calculating the Week Of The Year or the Day Of The Week recognize these rules.
True or False Date Functions. Is it a holiday? Code is provided for calculating US holidays. This function or any function similarly prototyped may be passed to business day functions to determine whether a date is a business day and the number of elapsed business days between dates. PD Date tools also provide functions for determining whether it is a leap year, valid date, or week day.
Recurring Date. A special True or False function determines whether a date B is a recurring instance of date A: weekly, every two weeks, every half month, monthly, the same day of the month, every two months, and more.
pddt1.gif (51633 bytes) Calendar. If you are satisfied with a calendar that just pops up and returns a date, or even uses drag and drop, you can use the PD Popup Calendar among many. However, if you want user controllable options between a system or other fonts, modal or MDI operation, multi-threading, localized month and day names, colored weekends, holidays, and other scheduled items, this calendar is the one to use.
  • Reads Windows Registry from Month and Abbreviated Day names, First Day of  Week, Week of  Year Calculation Rules.
  • Optionally MDI/Non MDI window
  • Threaded/Non Threaded Options
  • Colored weekend, holiday, and scheduled dates.
  • Range Limits
  • Hot Keys -- Uses Scrolling Date Class.
  • Transparent and Wallpaper options.
  • Variable titles.
  • Include/Exclude Title and Week/Day,Left lines.
  • Calendar Source Code Included
PddtTz.gif (24871 bytes) Time Zone Information. 32-bit applications may retrieve local names for Standard and Daylight Savings time, the UTC (Universal Time) bias, the date and time of transitions, and the user's current set up. Getting this information required breaking the UNICODE barrier.
Personal Calendars. Sample code illustrates one way to create multi-threaded personal calendars with appointment schedules, appointment details, "to do" lists, and recurring dates. The possibilities are virtually limitless.
pddt1.4.jpg (19361 bytes) International Information. In additional to retrieving international date rules from the registry, ProDomus Date Tools gets full and abbreviated month and day names. It stores this information in a global group that is always available to your application. If your application does not have access to the windows registry, you can use the 32-bit Date File Creation Utility to create an Ini type file of registry information.

Source Code. Breaking our usual rules, ProDomus Date Tools include source code for the example planner procedure and the International Calendar, schedule, and holiday calculation functions.

Templates

The PD Date Tools is implemented with simple to use templates.

A Global Extension Template with three entries adds the library and calendar source code to your application. These may be compile internally or externally.

An Initialization Extension Template initializes the popup calendar, adding default features and schedule to the calendar. A code template sets the default date function rules; this would typically use default entries without your having make changes.

A Date Scrolling Extension template then sets the behavior of date entries -- each may use the default settings or have its own; the extension requires you to identify the entry control and a default date.

The Calendar Extension Template may be used to call the calendar for the completion event of any control with a completion event. Minimum entries identify the calling control, a default date, and a date field.

A Calendar Button Control Template allows you to place a button next to a date entry field. The minimum entry identifies the entry control. This can call a threaded calendar that will mimic the behavior of the calling window: it will iconize, restore, and close at the same time as the calling window. Pressing the button will give the calendar focus if it has already been opened.

The Time Zone Code Template retrieves the user's time zone information. The template allows to perform different actions depending on function call results: unknown time zone, standard time, daylight time, and function failure.

Example Applications. Two sample applications are included. One illustrates a simple use of the scrolling function and popup calendar. The second includes appointment calendars and "to do" lists for multiple calendar users.

Quote

Gary Camolli
Thanks for the great template. Use it all of the time with my programs in Clarionz.

Order Information


PD Date tools is available directly from ProDomus or ClarionShop or by Emailing for Faxing ProDomus.  See the ProDomus order form.