Persian Date 1.0.1

http://www.dihav.com/
By Mohammad Yousefi
vahid_you2004@yahoo.com
April 2013

Contents


License Agreement

Using this program signifies acceptance of these terms and conditions of the license.

Top


Introduction

This program is some functions exactly like delphi date functions for the persian calendar.
You can use delphi help by removing the "Persian" and "Gregorian" words from the function name.
This program built by "Delphi 7" and also tested in "Delphi XE2".

Top


Installation

  1. Run Delphi.
  2. Select "Environment Options..." from "Tools" menu.
  3. Go to "Library" tab.
  4. Click the "..." button beside "Library Path" text box.
  5. Browse for the "PersianDate.pas" directory.
  6. Click "Add" button.
  7. Click "OK" button.
  8. Click "OK" button.
  9. To use unit functions add "PersianDate" to uses.

Top


Unit Types

Top


Unit Constants

Top


DateTime Types Conversion Functions

The functions are the same as delphi date functions.
Note that in TSystemTime "wDayOfWeek" specifies the day of the week starting from zero; Saturday = 0, Sunday = 1, and so on.

Top


Persian/Gregorian Date Conversion Functions

The functions are the same as delphi date functions.
Note that in TSystemTime "wDayOfWeek" specifies the day of the week starting from zero; Saturday = 0, Sunday = 1, and so on.

Top


Encode/Decode Functions

The functions are the same as delphi date functions.
Note that in TSystemTime "wDayOfWeek" specifies the day of the week starting from zero; Saturday = 0, Sunday = 1, and so on.
Note that in "DecodePersianDateFully" function "DOW" specifies the day of the week starting from one; Saturday = 1, Sunday = 2, and so on.

Top


Persian Date Functions

The functions are the same as delphi date functions.
Note that "DayOfWeek" specifies the day of the week starting from one; Saturday = 1, Sunday = 2, and so on.

Top


Date Shift Functions

The functions are the same as delphi date functions.

Top


Conversion to String Functions

The functions are the same as delphi date functions.
For more information about Format string search "Date-Time Format Strings" in delphi help.

Top


Read from String Functions

The functions are the same as delphi date functions.
Use "ExtractPersianDateFromString" function to extract date from a text.

Top


Numbers to Text Functions

You can use these functions to convert numbers to text.

Top


Visit dihav website.