Jonathan M Davis
3385bd435a
Move deprecations along.
2018-01-26 18:24:50 -07:00
The Dlang Bot
dadb13da46
Merge pull request #6071 from JackStouffer/timeofday-tostring
...
Work On Issue 10828 - Add output range versions of toString functions to std.datetime.TimeOfDay
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-26 22:07:31 +01:00
The Dlang Bot
effb1becc6
Merge pull request #6072 from JackStouffer/timeofday-fromISOExtString
...
Optimized std.datetime.date.TimeOfDay.fromISOExtString
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-26 19:05:00 +01:00
Jack Stouffer
4ed69922ac
Fix Auto-Decoding Issue With DateTime From String Methods
...
DateTime's from string methods use countUntil in order to check for the seperator between
the date and the time strings. This is fine until the result is used to slice the original
string, which can cause incorrect results. This is due to the problem that countUntil gives
the number of code points until the Needle and not the number of code units, which is the
how it's sliced.
Normally this doesn't actually pose a problem because actual time strings only contain ASCII
characters, but this does fix two things
1. No more auto decoding in the function, so it's faster
2. Better error messages if there are non-ASCII characters in the string because the break-up is correct
2018-01-26 10:20:14 -05:00
Jack Stouffer
774c141809
Optimized std.datetime.date.TimeOfDay.fromISOExtString
2018-01-26 09:51:28 -05:00
Jack Stouffer
d5528a62c6
Work On wqIssue 10828 - datetime toString functions should accept sink
2018-01-26 09:31:53 -05:00
The Dlang Bot
ca63eb295b
Merge pull request #6069 from JackStouffer/timeofday-roll
...
Publicly document all TimeOfDay.roll overloads
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-26 06:38:55 +01:00
The Dlang Bot
80ee4b3685
Merge pull request #6067 from JackStouffer/date-fromSimpleString
...
Optimized std.datetime.date.Date.fromSimpleString
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-26 06:05:11 +01:00
Jack Stouffer
2988f9a07a
Publically document all TimeOfDay.roll overloads
2018-01-25 14:45:18 -05:00
Jack Stouffer
f086ab6ce6
Fix Issue 18299: std.datetime.date.cmpTimeUnits does not throw a DateTimeException
2018-01-25 13:01:03 -05:00
Jack Stouffer
962db5447f
Optimized std.datetime.date.Date.fromSimpleString
2018-01-25 12:30:26 -05:00
The Dlang Bot
23c9601770
Merge pull request #6060 from JackStouffer/date-tostring
...
Partially Fix Issue 10828 - Add output range version of toString functions to std.datetime.Date
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-25 17:12:55 +01:00
Jack Stouffer
54708e10df
Optimized std.datetime.date.Date.fromISOExtString
2018-01-25 09:14:28 -05:00
Jack Stouffer
1eeadc82d3
Work On Issue 10828 - datetime toString functions should accept sink
2018-01-24 19:27:43 -05:00
Sebastian Wilzbach
7de3787876
Use static foreach in Phobos
2018-01-03 17:30:11 +01:00
The Dlang Bot
21e280fe60
Merge pull request #5966 from ThomasMader/custom_paths
...
Add possibility to specify custom path to tzdata dir
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-12-27 23:45:20 +01:00
Thomas Mader
735b360c42
Fix Issue 15391 - Add possibility to specify custom path to TZDatabaseDir
2017-12-27 17:32:48 +01:00
The Dlang Bot
279f99642e
Merge pull request #5948 from andralex/datetime-imports
...
Dramatically faster to import std.datetime (and anything under it)
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-12-26 20:19:44 +01:00
Andrei Alexandrescu
cd3152c7bf
Improve import speed of std.datetime
2017-12-26 13:24:37 -05:00
Diederik de Groot
31ca73d58d
Port of phobos to DragonFlyBSD
...
Notes:
- FIXME message related to dragonfly malloc issue (issue reported on upstream dragonfly issue database)
2017-12-20 08:05:49 +01:00
Sebastian Wilzbach
a241bf8fd4
[DDoc] Avoid auto-escaping of StopWatch in std.datetime
2017-12-12 12:03:48 +01:00
Sebastian Wilzbach
df6365092a
Replace body
keyword with its replacement: do
...
Automatic replacement with
sed -i "s/^\([ ]*\)body/\1do/" -i **/*.d
2017-11-20 15:33:52 +01:00
Sebastian Wilzbach
97f6f39e4e
Change AliasSeq(0, ...) uses of foreach to static foreach
2017-11-02 17:11:37 +01:00
Oleg Nykytenko
5e21857cdd
Solaris: add import clock_gettime to currStdTime
2017-10-30 16:10:15 +02:00
Jonathan M Davis
ae3a69023b
Move some deprecations along.
2017-10-08 02:28:30 -06:00
Jonathan M Davis
cfaef76d5a
Undocument deprecated, public unittest to get circleci to shut up.
2017-10-04 13:09:14 -06:00
Jonathan M Davis
85704a5f6e
Improve module documentation for std.datetime.stopwatch.
...
This should make it clearer how to deal with the problems created by
having deprecated symbols in std.datetime.package that conflict with the
ones in std.datetime.stopwatch.
2017-10-03 16:52:04 -06:00
Jonathan M Davis
9b5da5a3ca
Fix the indentation on some ddoc comments.
2017-10-03 16:18:02 -06:00
Jonathan M Davis
d35c934560
Deprecate old benchmarking functions in std.datetime.
2017-10-03 16:18:02 -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
wolframw
9a24a87949
Add public examples to std.date.
...
Affected functions:
- valid!"days"
- daysToDayOfWeek
- monthsToMonth
- yearIsLeapYear
- validTimeUnits
- cmpTimeUnits
2017-07-25 14:47:33 +02: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
The Dlang Bot
24e2f9e6e7
Merge pull request #5550 from JackStouffer/DateTime-fromstring
...
Optimized std.datetime.date.DateTime from string methods
merged-on-behalf-of: Jonathan M Davis <jmdavis@users.noreply.github.com>
2017-07-08 07:42:20 +02:00
The Dlang Bot
e0fc939e38
Merge pull request #5546 from wilzbach/deprecation-halt
...
Trigger a hard error on deprecation messages
merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
2017-07-06 01:41:02 +02:00
Sebastian Wilzbach
d8959320e0
Fix deprecations on Windows
2017-07-06 01:01:52 +02:00
The Dlang Bot
abbd350184
Merge pull request #5419 from JackStouffer/timeofday-string-alloc
...
Remove some extra string allocations in std.datetime.date.datetime
merged-on-behalf-of: Jonathan M Davis <jmdavis@users.noreply.github.com>
2017-07-05 21:36:06 +02:00
Jack Stouffer
58ebf548cc
Optimized std.datetime.date.DateTime from string methods
2017-07-05 15:10:45 -04:00
Jack Stouffer
19f2a965b2
Remove some extra string allocations in std.datetime.date.datetime
2017-07-05 10:39:01 -04:00
Sebastian Wilzbach
b37db35389
Fix CircleCI - unittests need to be annotated
2017-07-05 01:51:19 +02:00
The Dlang Bot
044c0afc0a
Merge pull request #5448 from Wulfklaue/patch-1
...
A simple example added to Date - toString
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-07-05 01:38:15 +02:00
Vladimir Panteleev
954dccd7f1
std.datetime: Clarify range of integer month parameters
...
Months are 0-11 in C's tm and the old std.date, so it's better to
clarify the range for every instance of `int month` in the API.
2017-07-01 10:37:15 +00:00
ZombineDev
8ef9c2f07b
Make throwing on invalid input optional in stda.datetime.date.Date.dayOfYear
...
* Keep throwing on invalid input in the public API
* Use assert for Date.this(), where exceptions are not appropriate
2017-06-30 20:38:22 +03:00
ZombineDev
3f8b5b30e7
Annotate with @nogc most of std.datetime.date's API
2017-06-30 20:37:50 +03:00
Sebastian Wilzbach
2ec7e9199b
Fix Ddoc comments
2017-06-21 05:10:24 +02:00
The Dlang Bot
857fdc1312
Merge pull request #5486 from wilzbach/fix-ddoc
...
Fix invalid undefined Ddoc macros
merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
2017-06-15 17:39:23 +02:00
Sebastian Wilzbach
e7111d4fd0
Fix invalid undefined Ddoc macros
2017-06-15 11:00:47 +02:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
...
This reverts commit 998ad51fd7
.
2017-06-13 17:51:52 +00:00