search_result_on_date

NAML documentation   Watch a video
   Usages of this macro
... in search.naml
128
129
130
131
132
133
134
<macro name="search_result_on_date" requires="node,search">
    <script type="text/javascript">
        Nabble.postDate = new Date(<n.when_created
Binary
Namespace: NodeNamespace
Parameters: do
.raw_time
Binary
Namespace: DateNamespace
/>);
        document.write(Nabble.isToday(Nabble.postDate) ? " at " : " on ");
        document.write(Nabble.formatDateShort(Nabble.postDate));
    </script>
</macro>