31 lines
549 B
Plaintext
31 lines
549 B
Plaintext
|
|
RENDER(Request& context)
|
|
{
|
|
|
|
String raw = first(context.post["raw"], "today");
|
|
|
|
<>
|
|
<link rel="stylesheet" href='style.css'></link>
|
|
<h1>
|
|
<a href="index.uce">UCE Test</a>:
|
|
time_parse
|
|
</h1>
|
|
<form action="?" method="post">
|
|
<div>
|
|
<label>Time string</label>
|
|
<input type="text" name="raw" value="<?= raw ?>"/>
|
|
</div>
|
|
<div>
|
|
<input type="submit" value="Parse"/>
|
|
</div>
|
|
</form>
|
|
<pre><?
|
|
|
|
print(time_format_local("%Y-%m-%d %H:%M", time_parse(raw)));
|
|
|
|
?></pre>
|
|
<pre><?= var_dump(context.params) ?></pre>
|
|
</>
|
|
|
|
}
|