Revision: bd62650e6604
Branch:   default
Author:   Janne Piironen <[email protected]>
Date:     Tue Jun 10 10:35:48 2014 UTC
Log:      DateTime: documentation section for programmatic usage
http://code.google.com/p/robotframework/source/detail?r=bd62650e6604

Modified:
 /src/robot/libraries/DateTime.py

=======================================
--- /src/robot/libraries/DateTime.py    Mon Jun  9 12:07:54 2014 UTC
+++ /src/robot/libraries/DateTime.py    Tue Jun 10 10:35:48 2014 UTC
@@ -27,6 +27,7 @@
 - `Date formats`
 - `Time formats`
 - `Millisecond handling`
+- `Programmatic usage`
 - `Shortcuts`
 - `Keywords`

@@ -117,6 +118,16 @@
result. By default, milliseconds are kept with every conversion and calculation. If milliseconds are chosen to be left out the result will be rounded to nearest
 second.
+
+= Programmatic Usage =
+Along with the keywords, the public API of this library consists of the
+following two classes:
+
+* class `robot.libraries.DateTime.Date` for creating a Date object from given
+  string or number.
+
+* class `robot.libraries.DateTime.Time` for creating a Time object from given
+  string or number.
 """

 from datetime import timedelta, datetime
@@ -411,7 +422,6 @@


 class Time(object):
-
     def __init__(self, time):
         self.seconds = self._convert_to_seconds(time)

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to