Re: How to search for an element in the array. D2 phobos.

2009-07-13 Thread Daniel Keep
bearophile wrote: Eldar Insafutdinov: I think I completely misunderstood how to use it. Yes, it's too much complex. It tries to do many different things in the most efficient way possible, the result is a high complexity in usage. That's one of the faults of Andrei's code, it's not

Re: D2 phobos std.date question

2009-07-13 Thread Stewart Gordon
Sam Hu wrote: Which method/ how can I produce proper result of local datetime? getUTCtime,UTCtoLocalTime,localTimeToUTC all can not produce the proper result. Could any body help?Thanks. Not without seeing your code and knowing what exactly you're trying to do. Stewart.

Re: formatting floating point

2009-07-13 Thread Saaa
You'd just have to convert each element of the array separately. I found the formatting options, they are in std.format.. (I was apparently searching for the 'g' option.. ) this seems to work (using std2.string.format) double[] d1; d1=[double.max,double.min]; char[] c; c=format(

Re: D2 phobos std.date question

2009-07-13 Thread Sam Hu
Stewart Gordon Wrote: Sam Hu wrote: Which method/ how can I produce proper result of local datetime? getUTCtime,UTCtoLocalTime,localTimeToUTC all can not produce the proper result. Could any body help?Thanks. Not without seeing your code and knowing what exactly you're trying to