Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102291100
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
Wed, Feb 19, 04:33
Size
268 B
Mime Type
text/x-c++
Expires
Fri, Feb 21, 04:33 (2 d)
Engine
blob
Format
Raw Data
Handle
24325054
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