Show the epoch: Difference between revisions

Content added Content deleted
m (→‎{{header|Lasso}}: use output block instead)
(Add a Limbo example.)
Line 338: Line 338:
<pre>1969-12-31 19:00:00
<pre>1969-12-31 19:00:00
1969-12-31 19:00:00</pre>
1969-12-31 19:00:00</pre>

=={{header|Limbo}}==
<lang Limbo>implement Epoch;

include "sys.m"; sys: Sys;
include "draw.m";
include "daytime.m"; daytime: Daytime;
Tm: import daytime;

Epoch: module {
init: fn(nil: ref Draw->Context, nil: list of string);
};

init(nil: ref Draw->Context, nil: list of string)
{
sys = load Sys Sys->PATH;
daytime = load Daytime Daytime->PATH;
sys->print("%s\n", daytime->text(daytime->gmt(0)));
}</lang>

{{out}}
<pre>Thu Jan 01 00:00:00 GMT 1970
</pre>


=={{header|Mathematica}}==
=={{header|Mathematica}}==