mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
LibJS: Implement Date.prototype.toISOString()
This commit is contained in:
parent
1eac1b360b
commit
a6b68451dc
5 changed files with 55 additions and 0 deletions
|
@ -52,6 +52,8 @@ public:
|
|||
return String::format("%s %s", date_string().characters(), time_string().characters());
|
||||
}
|
||||
|
||||
String iso_date_string() const;
|
||||
|
||||
// FIXME: One day, implement real locale support. Until then, everyone gets what the Clock MenuApplet displays.
|
||||
String locale_date_string() const { return m_datetime.to_string("%Y-%m-%d"); }
|
||||
String locale_string() const { return m_datetime.to_string(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue