uce/test/parse_time.uce
udo cd8f07aaa7 Refactor FastCGI server and compiler, enhance HTTP header parsing, and add WebSocket support
- Refactored FastCGIServer class to improve socket handling and added shutdown functionality.
- Updated compiler functions to streamline HTML and text literal processing.
- Enhanced split_kv function to support uppercase keys and added split_http_headers for better HTTP header parsing.
- Introduced new session management functions to validate and handle session IDs.
- Added WebSocket frame parsing and handling in the URI module.
- Created systemd service scripts for easier deployment and management of the UCE FastCGI runtime.
- Added new test cases for header handling, time parsing, and WebSocket functionality.
2026-04-18 14:04:58 +00:00

31 lines
522 B
Plaintext

RENDER()
{
String raw = first(context->post["raw"], "today");
<>
<link rel="stylesheet" href='style.css'></link>
<h1>
<a href="index.uce">UCE Test</a>:
parse_time
</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(date("%Y-%m-%d %H:%M", parse_time(raw)));
?></pre>
<pre><?= var_dump(context->params) ?></pre>
</>
}