Vladiwostok
231ae8b68a
Fix D-Scanner linting issues ( #9070 )
...
* Fix UndocumentedDeclarationCheck linting issue
* Fix IfConstraintsIndentCheck linting issue
* Address feedback
* Fix publictests CI
* Fix old (libdparse) D-Scanner linting warn
2024-10-27 01:21:56 -07:00
Jonathan M Davis
f7e523bc3c
Fix Bugzilla issue 24704: Improve error messages for from*String in std.datetime.
...
The documentation for the from*String functions specifies what they
accept, and the fromISO*String functions accept ISO or ISO extended
strings, but it is technically the case that there are ISO and ISO
extended strings which they do not accept (since the standard specifies
what the fields should look like for each string but doesn't specify
that all fields must be present or that any code parsing them must
accept all variants).
So, technically, the error messages which have said that the given
strings are not valid ISO or ISO extended strings are not necessarily
correct. So, this changes the error messages to remove that ambiguity.
2024-08-17 00:35:51 +02:00
Denis Feklushkin
c00a5ee6a8
Adds check bounds of year to std.datetime.date.Date
2024-07-25 03:10:46 +02:00
Dennis
7b90fa3e60
remove usage of octal literals ( #8168 )
2021-07-16 08:10:10 +08:00
berni44
6f2a0934a7
Adapt imports of std.format to new structure of std.format.
2021-03-19 13:22:00 +01:00
Geod24
04f3979317
Replace 'Issue XXX' with Bugzilla links
...
Make the links clickable, as was done in the DMD repository.
Also avoids any ambiguity w.r.t. where the issue is stored.
2020-04-13 16:28:09 +09:00
drug007
d45640894d
typo in docs
2020-03-24 11:32:12 +03:00
WebFreak001
08e0c2de24
add Date.isoWeekYear and Date.fromISOWeek
2020-03-10 22:12:37 +01:00
Adam D. Ruppe
ae93f5317c
Use consistent quickindex wrapper around hand-written list-of-links tables
2020-02-21 21:04:05 -05:00
Alexandru Militaru
bb62aaca3d
Replaced version (unittest) with version (StdUnittest) to avoid unnecessary overhead when compiling with -unittest
2020-01-19 14:05:17 +02:00
The Dlang Bot
7972cca21f
Merge pull request #7025 from wilzbach/import-selective2
...
Use selective top-level module imports in std.{base64,csv,datetime}
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-23 15:59:38 +02:00
Sebastian Wilzbach
9092826b27
Use selective top-level module imports in std.{base64,csv,datetime}
2019-05-23 09:57:13 +02:00
Steven Schveighoffer
96f98ff380
Change version(unittest) code to use accessors to wrap the static
...
initializers. This prevents the compiler from executing the initializers
using CTFE during importing, when using unittest.
2019-05-22 14:55:06 -07:00
Vladimir Panteleev
d18d52641c
std.datetime.date: Clarify that add/roll mutate the current object
...
It was not clear from the documentation whether these methods mutate
the current object, or return a new object with the applied
modification. The fact that these functions have a non-void return
type adds to the confusion.
Clarify this by explicitly mentioning that the functions mutate the
current object, and add a "Returns:" DDoc section documenting that the
methods simply return `this`.
2018-11-01 21:24:52 +00:00
Iain Buclaw
fd5facfe04
posix.mak: Enforce whitespace before opening parenthesis for version conditions
2018-09-22 16:57:24 +02:00
Basile Burg
db819575f1
Fix issue 11959 - Set private symbols declared in version(unittest) blocks
2018-08-26 10:22:11 +02:00
Jonathan M Davis
9e09703b8c
Remove const scope from value types in std.datetime.date.
...
None of these uses of const scope should be required, because Date,
TimeOfDay, and DateTime are all value types with no indirections.
2018-06-24 19:38:12 -06:00
Walter Bright
4f47997635
dip1000: std.datetime.date replace 'in' with 'scope const'
2018-06-23 22:21:17 -07:00
Sebastian Wilzbach
c324714fde
Remove a few cases of underscore escaping
2018-06-04 13:05:01 +02:00
Sebastian Wilzbach
42894784dd
Markdownify Phobos
...
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Sebastian Wilzbach
81b05c0fdd
std.datetime: make -dip1000 compatible
2018-03-28 02:33:10 +02:00
Jack Stouffer
2f737b9bf2
Add examples to std.datetime.date and enable dscanner check
2018-03-20 10:47:02 -04:00
Jonathan M Davis
1436fca1cc
Add website link to author name for Jonathan M Davis.
2018-03-10 16:31:23 -07:00
Jack Stouffer
663b5b9278
Revert addition of StdUnittest
2018-02-20 13:32:32 -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
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
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
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
Jack Stouffer
0509fd600b
Publicly document all DateTime.roll overloads
2018-01-30 15:28:55 -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
Sebastian Wilzbach
7de3787876
Use static foreach in Phobos
2018-01-03 17:30:11 +01:00
Andrei Alexandrescu
cd3152c7bf
Improve import speed of std.datetime
2017-12-26 13:24:37 -05: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
Jonathan M Davis
9b5da5a3ca
Fix the indentation on some ddoc comments.
2017-10-03 16:18:02 -06:00