Commit graph

14 commits

Author SHA1 Message Date
Jonathan M Davis
11f2899ab5 Various adjustments to the documentation in std.datetime and std.file.
This should fix the current ddoc build errors or Windows.
2011-01-22 09:48:29 +00:00
Jonathan M Davis
6c89581e2f Some tweaks to some of the std.datetime unit tests.
Also, the Windows-specific unit tests have now been enabled. So, while
unfortunately, we can't currently have them all enabled on Windows,
since it causes dmd to run out of memory, we can at least get the
Windows-specific stuff tested. Hopefully, the fact that the rest are
running on Linux will be enough for now as far as the other tests go.
2011-01-20 10:20:05 +00:00
Jonathan M Davis
020f6cf394 Fixed some issues with time zone names which worked on wine but not an Windows due to some differences between the two. 2011-01-20 05:06:08 +00:00
Jonathan M Davis
d8488a9865 Phobos has now been changed to use std.datetime. Also, bug# 3848 has been fixed.
std.gregorian, std.date, and std.dateparse have all been marked as
scheduled for deprecation. Everywhere (except for std.file) which was
using std.date is now using std.datetime. std.file is now using
std.datetime but has a number of functions still using d_time but which
are marked as scheduled for deprecation. I tried to give as many as I
could pragmas indicating that they were scheduled for deprecation, but
at the moment, that requires that a function be a templated function, and
I couldn't templatize all of them. So, some functions in std.file are
only marked as scheduled for deprecation in their documentation and will
not give any warning on compilation.

I had to rename several functions in std.file in order to avoid making
any breaking changes. And since I was already having to mess with
function names, it seemed like a good time to change the names of a
number of the functions in std.file to use proper capitalization
(such as changing isdir to isDir) as has been discussed and overwhelmingly
supported in the newsgroup with regards to std.string. And since I was
making those changes, it seemed like a good time to fix bug# 3848
(functions in std.file don't take symbolic links into account) as well.
So, std.file should now deal with symlinks properly.

The issue which Andrei brought up with +VERSION causing the std.datetime
unit tests to fail on OSX has been fixed as well.
2011-01-19 11:10:18 +00:00
Andrei Alexandrescu
c2f018066a Changed signature of findSkip, scheduled indexOf for deprecation, removed obsolete unittests 2011-01-17 08:36:59 +00:00
Jonathan M Davis
9d30071ea7 Some updates to std.datetime.
Among other things, fixes unit test failure on Mac OS X when it fails to
find /usr/share/zoneinfo/right/America/Los_Angeles.
2011-01-16 12:38:36 +00:00
Jonathan M Davis
c5f205a137 Re-enabled std.datetime for Windows but disabled its unit tests for Windows.
For some reason, the std.datetime unit tests compile and pass without
problems on Linux and in Wine on Linux, but on real Windows, the
compiler runs out of memory when compiling them. So, for now, all of the
std.datetime unit tests are versioned with testStdDateTime. On Posix,
version=testdStdDateTime is used in std.datetime, so the tests will run,
but that version is not set on Windows, so the unit tests don't run on
Windows. So, if you want to run the std.datetime unit tests on Windows or
under Wine or Linux, then compile with -version=testStdDateTime.

At the moment, all of the tests pass on both Linux and under Wine, and
the normal code does compile on proper, so I'm fairly certain that it's fine
for use on Windows, but for now, I can't enable the tests on Windows. My
best guess is that it's some sort of weird compiler bug involving system
calls that leak memory on Windows-proper but not in Wine, but I really
don't know.
2011-01-14 11:36:15 +00:00
Jonathan M Davis
038924e4f9 Made a unit test more lenient, so it won't result in semi-random failures. 2011-01-13 11:55:14 +00:00
Jonathan M Davis
fa729a3d02 Temporarily disabling std.datetime on Windows. 2011-01-13 08:55:45 +00:00
Jonathan M Davis
5decc9ce43 Some fixes for the Windows build. 2011-01-12 11:18:31 +00:00
Jonathan M Davis
4b8ebb3871 New std.datetime added.
Nothing in Phobos has been made to use it yet and nothing has yet been
marked as deprecated or scheduled for deprecation due to the new
std.datetime being checked in. That's for a future commit.
2011-01-12 09:13:50 +00:00
SHOO
c6aeea9131 Minor update. 2011-01-11 16:02:32 +00:00
SHOO
7cd2e0339e std.datetime: Added benchmark
This function came from std.date.
But now, benchmark returns Ticks[N] and don't use result argument.
I removed need to use GC for by doing it in this way.
2010-09-18 11:04:14 +00:00
SHOO
3f7580f002 Added std.datetime
1. deprecate std.perf (I added pragma(msg, "...").)
2. Define std.datetime, paste std.stopwatch in it.
I look at the state about the time handling.
2010-09-18 06:20:26 +00:00
Renamed from std/stopwatch.d (Browse further)