DEV Community

Discussion on: Resumability, WTF?

Collapse
 
tigt profile image
Taylor Hunt
// in HTML - how do I get the timestamp?
<time>08/19/2022</time>

I guess this exact problem is why they specced the datetime attribute — but you have to remember to use it:

<time datetime=2022-08-19T14:54:39.929Z>08/19/2022</time>
Enter fullscreen mode Exit fullscreen mode

…which presumably Resumable frameworks obviate, by remembering everything for you!

Collapse
 
ryansolid profile image
Ryan Carniato Playful Programming • Edited

Ok so a timestamp might have been not the best example. My point is that you needed to serialize the full data in addition to the final output. Whether that is in a script tag or as another attribute in HTML is still more of the same.