Skip to content
Browse files

Added a Getting Started section to readme file.

  • Loading branch information...
1 parent 2112949 commit 9c9dd7002ca4aafef27a29352eee288fb9ee583f @colinj committed Oct 2, 2012
Showing with 12 additions and 1 deletion.
  1. +12 −1 README.md
View
13 README.md
@@ -6,9 +6,20 @@ One of the updated language features for XE3 are record helpers for simple types
To learn a little bit more, I decided to make a record helper for the TDateTime type. It's a very simple record helper which pretty much calls the existing date time functions that are in the DateUtils unit. One benefit is that it allows you to assign and manipulate datetime values very easily.
+Getting Started
+---------------
+1. Download the DateTimeHelper unit.
+2. Add DateTimeHelper unit to your project.
+3. Add DateTimeHelper to the uses clause in the implementation section of your unit.
+
+And that's it! You now should be able to see the additional methods on TDateTime types via CodeInsight in your Delphi XE3 IDE.
+
+*Note:* The limitation of helper records is that only one helper is active/available per class type. If you have more than one helper for a class type then it is the last one defined in the uses clause that will be active.
+
+
**Example**
- uses TDateTimeHelper;
+ uses DateTimeHelper;
var
T1, T2: TDateTime;

0 comments on commit 9c9dd70

Please sign in to comment.
Something went wrong with that request. Please try again.