mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
LibWeb: Serialize Time according to spec
This commit is contained in:
parent
b5ba479d65
commit
e72b7c5de2
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ Time Time::percentage_of(Percentage const& percentage) const
|
||||||
|
|
||||||
ErrorOr<String> Time::to_string() const
|
ErrorOr<String> Time::to_string() const
|
||||||
{
|
{
|
||||||
return String::formatted("{}{}", m_value, unit_name());
|
return String::formatted("{}s", to_seconds());
|
||||||
}
|
}
|
||||||
|
|
||||||
float Time::to_seconds() const
|
float Time::to_seconds() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue