<div dir="ltr">Hi All,<div><br></div><div> how does one produce a nice timestamp, simply date and time as in</div><div><br></div><div><div> 7/7/2016 09:19:38</div><div><br></div><div>Trivial, right?</div><div><br></div><div>So</div><div><div><br></div><div> Date today mmddyyyy, ' ', Time now print24 '7/7/2016 09:22:40.914'</div></div><div><br></div><div>.914, ah, nanos. How useful. Let's get rid of them. No nanos: accessor so</div><div><br></div><div> Date today mmddyyyy, ' ', (Time now nanos: 0) print24 => MNU</div><div><br></div><div>but there's a seconds accessor, so</div><div><br></div><div> Date today mmddyyyy, ' ', (Time now seconds: Time now seconds; print24) '7/7/2016 00:00:41</div><div><br></div><div>?? So seconds: is private, and isn't the dual of Time seconds:</div><div><br></div><div><div>Time seconds</div><div><span class="" style="white-space:pre">        </span>^ self second</div></div><div><div>Time second</div><div><span class="" style="white-space:pre">        </span>^ self asDuration seconds</div></div><div><div>Duration seconds</div><div><span class="" style="white-space:pre">        </span>"Answer the number of seconds the receiver represents."</div><div><span class="" style="white-space:pre">        </span>^seconds rem: SecondsInMinute</div></div><div><br></div><div>Looks broken to me.</div><div><br></div><div>Personally I think print24 should not print sub seconds.</div><div><br></div><div>cc'ing to Pharo because I want this timestamp to be the same in both dialects for a profiling tool we want to use in both dialects.</div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>