That is beautiful! I wake up check my email, it&#39;s in the trunk, I hit the update button, go to my workspace and try it, it works.<br><br>Awesome, thanks.<br><br>Mike<br><br clear="all">Mike Hales<br>Engineering Manager<br>
KnowledgeScape<br><a href="http://www.kscape.com">www.kscape.com</a><br>
<br><br><div class="gmail_quote">On Fri, Jan 15, 2010 at 5:11 AM, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 15.01.2010, at 05:26, Mike Hales wrote:<br>
&gt; Is there any protocol in the DateAndTime hierarchy that returns the unix time? I want the equivalent of typing &quot;date +%s&quot; on the command line.<br>
<br>
</div>In the latest trunk image, there now is #asUnixTime :)<br>
<div class="im"><br>
On 15.01.2010, at 12:16, Bert Freudenberg wrote:<br>
&gt;<br>
&gt; <a href="http://tinlizzie.org/updates/etoys/updates/2092LocalePluginAddins-tpr.cs" target="_blank">http://tinlizzie.org/updates/etoys/updates/2092LocalePluginAddins-tpr.cs</a><br>
</div><div class="im">&gt; <a href="http://tinlizzie.org/updates/etoys/updates/2106chronologyUnix-bf.cs" target="_blank">http://tinlizzie.org/updates/etoys/updates/2106chronologyUnix-bf.cs</a><br>
<br>
</div>I just committed these to trunk, with one modification to the startup - the timezone is set unconditionally (independent of useLocale).<br>
<br>
The timezone is only set on startup. So restart the image or evaluate &quot;Locale startUp: true&quot;.<br>
<br>
before:<br>
<br>
DateAndTime now<br>
==&gt; 2010-01-15T12:23:35.301+00:00<br>
<br>
after:<br>
<br>
DateAndTime now<br>
==&gt; 2010-01-15T12:24:02.452+01:00<br>
<br>
(note the last four digits which are the local time offset)<br>
<br>
DateAndTime now asUnixTime<br>
==&gt; 1263554652<br>
<font color="#888888"><br>
- Bert -<br>
<br>
<br>
</font></blockquote></div><br>