Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F880871
date.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
date.js
View Options
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if
(
!
dojo
.
_hasResource
[
"dojox.dtl.tag.date"
]){
dojo
.
_hasResource
[
"dojox.dtl.tag.date"
]
=
true
;
dojo
.
provide
(
"dojox.dtl.tag.date"
);
dojo
.
require
(
"dojox.dtl._base"
);
dojo
.
require
(
"dojox.dtl.utils.date"
);
dojox
.
dtl
.
tag
.
date
.
NowNode
=
function
(
_1
,
_2
){
this
.
_format
=
_1
;
this
.
format
=
new
dojox
.
dtl
.
utils
.
date
.
DateFormat
(
_1
);
this
.
contents
=
_2
;
};
dojo
.
extend
(
dojox
.
dtl
.
tag
.
date
.
NowNode
,{
render
:
function
(
_3
,
_4
){
this
.
contents
.
set
(
this
.
format
.
format
(
new
Date
()));
return
this
.
contents
.
render
(
_3
,
_4
);
},
unrender
:
function
(
_5
,
_6
){
return
this
.
contents
.
unrender
(
_5
,
_6
);
},
clone
:
function
(
_7
){
return
new
this
.
constructor
(
this
.
_format
,
this
.
contents
.
clone
(
_7
));
}});
dojox
.
dtl
.
tag
.
date
.
now
=
function
(
_8
,
_9
){
var
_a
=
_9
.
split_contents
();
if
(
_a
.
length
!=
2
){
throw
new
Error
(
"'now' statement takes one argument"
);
}
return
new
dojox
.
dtl
.
tag
.
date
.
NowNode
(
_a
[
1
].
slice
(
1
,
-
1
),
_8
.
create_text_node
());
};
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Apr 2 2025, 03:09 (5 w, 14 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26626
Default Alt Text
date.js (1 KB)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment