Difference between revisions of "Comparing time value formats"

From EtherWiki
Jump to: navigation, search
 
Line 1: Line 1:
 +
'''[[Phonebot_developer%27s_reference/Object_reference#Application|Application]] object'''
 +
 +
The <code>now()</code> method returns the current time and is a synonym for <code>datetime.now()</code>.
 +
 
'''[[Phonebot_developer%27s_reference/Object_reference#Datetime|Datetime]] object'''
 
'''[[Phonebot_developer%27s_reference/Object_reference#Datetime|Datetime]] object'''
  

Latest revision as of 22:19, 5 October 2012

Application object

The now() method returns the current time and is a synonym for datetime.now().

Datetime object

The add_duration() method takes a parameter that represents a duration in a single unit of time as DURATION[y|M|d|h|m|s].

The format() method takes a parameter that uses the Java date format pattern syntax.

The format_difference() method formats the datetime value as HH:mm:ss.

Services

The sensor service minimum_update property takes an integer value in milliseconds.

The timer service duration property takes a value formatted as h:m:s, m:s, or s.