digitalmars.D.learn - string to time conversion (when string contains time but no date)
- Timothee Cour via Digitalmars-d-learn (7/7) Jun 26 2015 is there a way to convert a string representing a time (without date) to...
- "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm gmx.net> (4/12) Jun 27 2015 Try TimeOfDay's methods:
- Timothee Cour via Digitalmars-d-learn (3/19) Jun 27 2015 thanks, missed that!
is there a way to convert a string representing a time (without date) to a time, eg: auto t = "19:03:40.143656"; auto a=SysTime.fromTimeString(t); // doesn't exist My current workaround is to append a dummy date before and then calling SysTime.fromSimpleString. Is there a better way? seems needed
Jun 26 2015
On Saturday, 27 June 2015 at 03:17:49 UTC, Timothee Cour wrote:is there a way to convert a string representing a time (without date) to a time, eg: auto t = "19:03:40.143656"; auto a=SysTime.fromTimeString(t); // doesn't exist My current workaround is to append a dummy date before and then calling SysTime.fromSimpleString. Is there a better way? seems neededTry TimeOfDay's methods:
Jun 27 2015
thanks, missed that! On Sat, Jun 27, 2015 at 2:59 AM, via Digitalmars-d-learn < digitalmars-d-learn puremagic.com> wrote:On Saturday, 27 June 2015 at 03:17:49 UTC, Timothee Cour wrote:is there a way to convert a string representing a time (without date) to a time, eg: auto t = "19:03:40.143656"; auto a=SysTime.fromTimeString(t); // doesn't exist My current workaround is to append a dummy date before and then calling SysTime.fromSimpleString. Is there a better way? seems neededTry TimeOfDay's methods:
Jun 27 2015