Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121649725
DateObjectSerializer.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jul 12, 19:55
Size
268 B
Mime Type
text/x-c++
Expires
Mon, Jul 14, 19:55 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27367098
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
DateObjectSerializer.js
View Options
/*
MIT License http://www.opensource.org/licenses/mit-license.php
*/
"use strict"
;
class
DateObjectSerializer
{
serialize
(
obj
,
{
write
})
{
write
(
obj
.
getTime
());
}
deserialize
({
read
})
{
return
new
Date
(
read
());
}
}
module
.
exports
=
DateObjectSerializer
;
Event Timeline
Log In to Comment