Commit graph

22 commits

Author SHA1 Message Date
Jonathan M Davis
ae3a69023b Move some deprecations along. 2017-10-08 02:28:30 -06:00
Martin Nowak
f9b2d42e9e Merge remote-tracking branch 'upstream/stable' into merge_stable
Conflicts:
	std/uni.d
2017-10-01 14:44:58 +02:00
H. S. Teoh
b70db9929f [trivial] Fix typo in docs. 2017-09-18 10:40:02 -07:00
Jonathan M Davis
80a0b584ee Fix issue 17801: DateTime.fromISOExtString no longer works with const strings.
The from*String functions in std.datetime did not have tests to make
sure that they worked with various character types or various levels of
constness, and some optimizations that were done to the from*String
functions on DateTime for 2.076 broke them for const strings. So, this
adds tests for all character types and levels of constness to each of
the from*String function in std.datetime, and fixes the functionality
for DateTime that then doesn't pass the tests.
2017-09-03 04:08:45 -06:00
Jonathan M Davis
abe4f45d9f Move some std.datetime deprecations along. 2017-07-18 06:37:07 -06:00
Jonathan M Davis
57ef919963 Fix issue 16993: Clarify documentation of std.datetime's toString functions.
I should have done this years ago, but this makes the documentation
clear that std.datetime's toString is intended simply for easy printing
of the type rather than for code that actually cares about the format of
the string. There are other, explicit functions for code that actually
cares.
2017-07-11 06:11:24 -06:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
This reverts commit 998ad51fd7.
2017-06-13 17:51:52 +00:00
Sebastian Wilzbach
998ad51fd7 Sort selective imports 2017-06-12 08:12:09 +02:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
Sebastian Wilzbach
32e50bd7eb Reenable publictests checking on CircleCi 2017-05-26 18:27:14 +02:00
Jack Stouffer
e7439425e8 Added example to SysTime.isoWeek 2017-05-22 15:42:40 -04:00
Jonathan M Davis
21c09f18d3 Issue 16053: Fix it so that SysTime's from*String supports more than 7 digits.
ISO 8601 says that it's up to the application to decide how many digits
to put in the fractional seconds if they're present. SysTime.to*String
puts up to 7 (stripping trailing zeroes), because that's
hecto-nanosecond precision, and SysTime holds the time in
hecto-nanoseconds. Currently, from*String only accepts up to 7 digits in
the fractional seconds, which _does_ follow the spec in that (per the
spec) the number of digits is up to the applications. However, while we
never emit more than 7 digits, other applications do, so only accepting
7 digits makes us incompatible with them, whereas accepting them would
make us more compatible with other programs, and it would actually be
more efficient, since we'd have fewer checks in the code.

So, these changes make is so that SysTime.from*String accepts more than 7
digits in the fractional seconds, but the additional digits are
truncated (since SysTime doesn't support more than 7 digits of
precision).
2017-05-13 07:18:41 -07:00
Sebastian Wilzbach
3d6b8bb436 Fix Ddoc links in std.datetime 2017-05-06 22:04:58 +02:00
Jonathan M Davis
b7bb3bcc46 Fix links in std.datetime. 2017-05-06 16:48:09 +02:00
Jonathan M Davis
10a7292b6b Remove uses of common, datetime, and timeofday. 2017-05-06 16:48:09 +02:00
Jonathan M Davis
6027d7b449 Move stray functionality in std.datetime.common to std.datetime.date. 2017-05-06 16:48:09 +02:00
Jonathan M Davis
491d76d8a6 Fixes to make circleci happy. 2017-05-05 21:47:02 +02:00
Jonathan M Davis
6e2f88a806 Fix links in std.datetime. 2017-05-05 21:47:02 +02:00
Jonathan M Davis
4e53896631 Move stray SysTime-related functions to std.datetime.systime. 2017-05-05 21:47:02 +02:00
Jonathan M Davis
10611d68b1 Move Clock to std.datetime.systime. 2017-05-05 21:47:02 +02:00
Jonathan M Davis
27943964f4 Move SysTime to std.datetime.systime. 2017-05-05 21:47:02 +02:00
Jonathan M Davis
e532c4f155 Create the new (empty) files in std/datetime for the split. 2017-05-03 09:44:04 +02:00