Samsung Electronics logo

Time: Using Locale-specific Features

Samsung Web API enables you to use locale-specific calendar features by retrieving date and time information using the Time API. You can also change the date, time, and time zone, and make some date- and time-related calculations. The Time API overcomes several limitations of the JavaScript Date object.

Locale refers to the set of information that is specific to a language and a country. It affects the numeric formats (decimal and list separators), date formats, and the character sorting order. It determines how a locale-specific functionality behaves; for example, how numbers are displayed or strings converted to dates.

The main features of the Time API include: