Class WatchTime
Definition
- Assembly:
- Tizen.NUI.dll
The WatchTime class is used to get time for the WatchApplication.
A WatchTime has a time handle from watch application framework.
You can get time(hour, minute, second, millisecond) and date(year, month, day)
on receiving timeTick signal.
public class WatchTime : IDisposable
- Inheritance
-
objectWatchTime
- Implements
-
System.IDisposable
Constructors
View SourceWatchTime()
Constructor.
Declaration
public WatchTime()
Fields
View Sourcedisposed
A Flat to check if it is already disposed.
Declaration
protected bool disposed
Field Value
Type | Description |
---|---|
bool |
swigCMemOwn
swigCMemOwn.
Declaration
protected bool swigCMemOwn
Field Value
Type | Description |
---|---|
bool |
Properties
View SourceDay
Get the current day.
Declaration
public int Day { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
The return value is always positive.The WatchTime needs to be initialized.
DaylightSavingTimeStatus
Get the daylight saving time status.
Declaration
public bool DaylightSavingTimeStatus { get; }
Property Value
Type | Description |
---|---|
bool |
Remarks
The WatchTime needs to be initialized.
DayOfWeek
Get the current week.
Declaration
public int DayOfWeek { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
The return value is always positive.The WatchTime needs to be initialized.
Hour
Get the current hour.
Declaration
public int Hour { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
The return value is always positive.The WatchTime needs to be initialized.
Hour24
Get the current hour24.
Declaration
public int Hour24 { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
The return value is always positive.The WatchTime needs to be initialized.
Millisecond
Get the current millisecond.
Declaration
public int Millisecond { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
The return value is always positive.The WatchTime needs to be initialized.
Minute
Get the current minute.
Declaration
public int Minute { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
The return value is always positive.The WatchTime needs to be initialized.
Month
Get the current month.
Declaration
public int Month { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
The return value is always positive.The WatchTime needs to be initialized.
Second
Get the current second.
Declaration
public int Second { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
The return value is always positive.The WatchTime needs to be initialized.
TimeZone
Get the ID of timezone.
Declaration
public string TimeZone { get; }
Property Value
Type | Description |
---|---|
string |
Remarks
The WatchTime needs to be initialized.
The timezone ID, according to the IANA(Internet Assigned Numbers Authority)
If you want to see more information, please refer to the site :
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones/
Year
Get the current year.
Declaration
public int Year { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
The return value is always positive.The WatchTime needs to be initialized.
Methods
View SourceDispose()
To make watch time instance be disposed.
Declaration
public void Dispose()
Dispose(DisposeTypes)
you can override it to clean-up your own resources.
Declaration
protected virtual void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type | DisposeTypes |
~WatchTime()
Distructor.
Declaration
protected ~WatchTime()