LocaleInfo interface
Represents OS locale info used for formatting date and time data
Properties
long |
Displays only date values, as specified by the Long Date format in user's regional settings. Example
|
long |
A string representing the long time format used by the user's locale. Example
|
platform | Represents the user's platform on which the app is running. |
regional |
Represents the regional format used by the user's locale. Example
|
short |
Displays date values, as specified by the short date format MM/DD/YYYY in user's regional settings. Example
|
short |
A string representing the short time format used by the user's locale. Example
|
Property Details
longDate
Displays only date values, as specified by the Long Date format in user's regional settings.
Example
Friday, April 21, 2023
longDate: string
Property Value
string
longTime
A string representing the long time format used by the user's locale.
Example
10:10:42 AM
longTime: string
Property Value
string
platform
Represents the user's platform on which the app is running.
platform: android | ios | macos | "windows"
Property Value
regionalFormat
Represents the regional format used by the user's locale.
Example
en-us
.
regionalFormat: string
Property Value
string
shortDate
Displays date values, as specified by the short date format MM/DD/YYYY in user's regional settings.
Example
4/21/2023 or 4-21-2023
shortDate: string
Property Value
string
shortTime
A string representing the short time format used by the user's locale.
Example
10:10
shortTime: string
Property Value
string
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour