Reference - PAD functions - now


App: regression/framework - Page: expressions/a_bare_function_does_not_take_an_operator
PHP
HTML
expressions/a_bare_function_does_not_take_an_operator.pad
Result
{if now lt 5}T{else}F{/if}


App: regression/framework - Page: functions/now_gives_a_unix_timestamp
PHP
HTML
functions/now_gives_a_unix_timestamp.pad
Result
{echo 0 | now}


App: regression/framework - Page: functions/the_date_pipes_follow_a_frozen_clock
PHP
functions/the_date_pipes_follow_a_frozen_clock.php
HTML
functions/the_date_pipes_follow_a_frozen_clock.pad
Result
<?php

padNowFreeze
( '2020-01-15 10:00:00' );

?>
[{echo now | date('Y-m-d')}][{echo '' | date('Y-m-d')}][{echo 'tomorrow' | date('Y-m-d')}][{echo '' | localDate('y-MM-dd')}]


App: regression/pages - Page: catalog/volatile
PHP
catalog/volatile.php
HTML
catalog/volatile.pad
Result
<?php

// This page draws: the ajax id and the timestamp are random every render, so the crawl
// compares it by shape. The suite answer is a regex for the same reason.

return TRUE;

?>
{ajax 'pairing'}
{echo 0 | now}