Skip to content

Commit 50f61f7

Browse files
committed
Added getTimezones() and getCurrentTimezone() to blackberry.system
1 parent 0b1f8f3 commit 50f61f7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

api/blackberry_system.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,26 @@ blackberry.system ={
113113
*/
114114
getFontInfo : function(){},
115115

116+
/**
117+
* @function
118+
* @description Retrieves the list of all time zones supported by the device. The time zones are based on the Olson time zone database. For more information, refer to <a href="http://www.iana.org/time-zones" target="_blank">IANA</a>.
119+
* @returns {String[]}
120+
* @BB10X
121+
*/
122+
getTimezones: function () {},
123+
124+
/**
125+
* @function
126+
* @description Retrieves the time zone currently used by the device.
127+
* @returns {String}
128+
* @example
129+
* function getCurrentTimezone() {
130+
* return blackberry.system.getCurrentTimezone(); // e.g. "America/New_York"
131+
* }
132+
* @BB10X
133+
*/
134+
getCurrentTimezone: function () {},
135+
116136
/**
117137
* @uri
118138
* @BB50+

0 commit comments

Comments
 (0)