There is a repertoire of useful System Classes that helps you manipulate form, uploading, session, cookies, scheme settings and the file system. Details can be found in the BEE Script User Reference - PDF.
Here we show a trivial example of displaying the system time:
<script language="bee"> var hw = "Hello World";
display "<h1>{hw}
</h1>
";
display "The time now is {sys%time}.
";
</script>
The output is a ten-digit number (supposing you're doing it after Sep 2001). To make it readable, we can "convert" it with the Conversion "strftime":
display "The time now is {sys%time|strftime}.
";
This will output in a common format like "Sun Dec 15 10:59:05 2002". You can change it to suit your needs with a printf-like format string. e.g. {sys%time|strftime:%d/%m/%Y (%a)} shows "15/12/2002 (Sun)". You can even do this:
display "{sys%time|strftime:The time now is %d/%m/%Y (%a).
}";
|