RobotLib  1
A set of software wrappers for Rovio, Roomba and NXT robots written in C#.
 All Classes Namespaces Functions Variables Enumerations Properties Pages
Public Member Functions | List of all members
Rovio.API.Time Class Reference

Manage time settings and time zones. More...

Inheritance diagram for Rovio.API.Time:
Rovio.Component

Public Member Functions

 Time (Robot _robot)
 The constructor.
 
void SetTime (int seconds, int time_zone)
 Set server time zone and time. Sec1970 - seconds since "00:00:00 1/1/1970". TimeZone – Time zone in minutes. (e.g. Beijing is GMT+08:00, TimeZone = -480)
 
string GetTime ()
 Get current time zone and time.
 
void SetLogo (string type, string position)
 Set a logo string on the image. showstring: time - time date - date ver - version pos: 0 – top left 1 – top right 2 – bottom left 3 – bottom right
 
string GetLogo ()
 Get a logo string on the image.
 
- Public Member Functions inherited from Rovio.Component
 Component (Robot _robot)
 The constructor.
 
virtual void Update ()
 The Update function that manually refreshes the state of a given component (e.g. when AutoUpdate = false)
 

Additional Inherited Members

- Public Attributes inherited from Rovio.Component
bool AutoUpdate = true
 Automatic update option for methods requesting more than one piece of information.
 
- Protected Attributes inherited from Rovio.Component
Robot robot
 The robot class, accessible by all dervied classes.
 

Detailed Description

Manage time settings and time zones.

Constructor & Destructor Documentation

Rovio.API.Time.Time ( Robot  _robot)

The constructor.

Member Function Documentation

string Rovio.API.Time.GetLogo ( )

Get a logo string on the image.

/todo Fix return value. The current Rovio implementation repeats the return value twice.

string Rovio.API.Time.GetTime ( )

Get current time zone and time.

Todo:
Implement with DateTime input parameter.
void Rovio.API.Time.SetLogo ( string  type,
string  position 
)

Set a logo string on the image. showstring: time - time date - date ver - version pos: 0 – top left 1 – top right 2 – bottom left 3 – bottom right

Todo:
Implement the enum input parameters.
void Rovio.API.Time.SetTime ( int  seconds,
int  time_zone 
)

Set server time zone and time. Sec1970 - seconds since "00:00:00 1/1/1970". TimeZone – Time zone in minutes. (e.g. Beijing is GMT+08:00, TimeZone = -480)

Todo:
Implement with DateTime input parameter.

The documentation for this class was generated from the following file: