Commit graph

124 commits

Author SHA1 Message Date
Jack Stouffer
6e2993f346 Optimized std.datetime.systime.SysTime.fromSimpleString 2018-02-13 23:07:22 -05:00
The Dlang Bot
8d525413a7
Merge pull request #6151 from wilzbach/fix-dscanner
Fix all DScanner warnings + use -return-exit-code re-enable it
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-02-13 00:25:26 +01:00
Nathan Sashihara
2806ae5e8b Issue 18398 - std.datetime.stopwatch documented examples could be better (x2)
Workaround for documentation bug from Issue 16992
2018-02-11 07:49:36 -05:00
Sebastian Wilzbach
d9830b739e Fix DScanner warnings 2018-02-10 22:46:32 +01:00
Nathan Sashihara
602c3ede71 Issue 18398 - std.datetime.stopwatch documented examples could be better 2018-02-08 08:24:27 -05:00
The Dlang Bot
378b710315
Merge pull request #6118 from wilzbach/fix-18345
Issue 18345 - add bookmark tables to std.datetime
merged-on-behalf-of: Jonathan M Davis <jmdavis@users.noreply.github.com>
2018-02-07 19:27:56 +01:00
Jack Stouffer
303f2ee4ad Optimized std.datetime.systime.SysTime.fromISOString 2018-02-07 11:16:25 -05:00
Sebastian Wilzbach
6fcd737163 Issue 18345 - add bookmark tables to std.datetime 2018-02-03 21:05:34 +01:00
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
The Dlang Bot
06155b700c
Merge pull request #6103 from JackStouffer/timezone-fromISOString
Optimized std.datetime.timezone.SimpleTimeZone.fromISOString
merged-on-behalf-of: Jonathan M Davis <jmdavis@users.noreply.github.com>
2018-02-01 13:29:42 +01:00
Jack Stouffer
e03f970252
Merge pull request #6101 from JackStouffer/datetime-tostring
Issue 10828 - Add Output Range Overloads to DateTime toString Methods
2018-01-31 08:43:18 -05:00
Jack Stouffer
805dbe7cf3 Optimized std.datetime.timezone.SimpleTimeZone.fromISOString 2018-01-31 07:32:52 -05:00
Jack Stouffer
a9d2f7e903 Fixed safety issue of catching any exception in date/time/datetime toString methods 2018-01-31 07:17:48 -05:00
Jack Stouffer
b503bb4acd Work On Issue 10828 - datetime toString functions should accept sink 2018-01-31 05:02:50 -05:00
The Dlang Bot
0d6657a552
Merge pull request #6088 from JackStouffer/timezone-fromISOExtString
Optimized std.datetime.timezone.SimpleTimeZone.fromISOExtString
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-31 09:20:26 +01:00
Sebastian Wilzbach
12e227dfe8
Merge pull request #6095 from joakim-noah/comment
Fix some comments from #5902
2018-01-31 05:19:26 +01:00
Jack Stouffer
0509fd600b Publicly document all DateTime.roll overloads 2018-01-30 15:28:55 -05:00
Joakim
311bb3b0bf Fix some comments from #5902 2018-01-30 19:36:12 +01:00
The Dlang Bot
2f25cdf076
Merge pull request #5902 from kinke/ldc_to_upstream
Upstream some LDC patches
merged-on-behalf-of: unknown
2018-01-29 19:15:07 +01:00
Jack Stouffer
6f322c7708 Optimized std.datetime.timezone.SimpleTimeZone.fromISOExtString 2018-01-29 08:19:48 -05:00
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
Martin
9f8482a5ac Solaris fixes for std.datetime 2018-01-04 22:32:19 +01: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