1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0//EN">
6 <style type=
"text/css">
9 font-family: verdana
, sans-serif
;
29 text-decoration:underline
;
34 text-decoration: none
;
47 border-bottom-width:1px;
48 border-bottom-style:dotted
;
64 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
67 <big><tt>Global.Date.prototype.getAge
(param)
</tt></big><br>
73 return the past timespan between this Date object and
74 the current Date or a different Date object
<br><br>
80 <li><b>See also
</b><br>
81 Date.prototype.getTimespan
90 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
92 <td>Sourcecode in /root/helma-
1.6.1/modules/core/Date.js:
93 <pre><font color=
"#aaaaaa">138:
</font> Date.prototype.getAge = function(param) {
94 <font color=
"#aaaaaa">139:
</font> var age = this.getTimespan(param);
95 <font color=
"#aaaaaa">140:
</font> if (!age.isFuture)
96 <font color=
"#aaaaaa">141:
</font> return age.span;
97 <font color=
"#aaaaaa">142:
</font> return null;
98 <font color=
"#aaaaaa">143:
</font> }