<div dir="ltr">thanks, missed that!</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 27, 2015 at 2:59 AM, via Digitalmars-d-learn <span dir="ltr"><<a href="mailto:digitalmars-d-learn@puremagic.com" target="_blank">digitalmars-d-learn@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Saturday, 27 June 2015 at 03:17:49 UTC, Timothee Cour wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
is there a way to convert a string representing a time (without date) to a<br>
time, eg:<br>
<br>
auto t = "19:03:40.143656";<br>
auto a=SysTime.fromTimeString(t); // doesn't exist<br>
<br>
<br>
My current workaround is to append a dummy date before and then calling SysTime.fromSimpleString.<br>
<br>
Is there a better way? seems needed<br>
</blockquote>
<br></div></div>
Try TimeOfDay's methods:<br>
<br>
<a href="http://dlang.org/phobos/std_datetime.html#.TimeOfDay.fromISOString" rel="noreferrer" target="_blank">http://dlang.org/phobos/std_datetime.html#.TimeOfDay.fromISOString</a><br>
<a href="http://dlang.org/phobos/std_datetime.html#.TimeOfDay.fromISOExtString" rel="noreferrer" target="_blank">http://dlang.org/phobos/std_datetime.html#.TimeOfDay.fromISOExtString</a><br>
</blockquote></div><br></div>