Commit graph

244 commits

Author SHA1 Message Date
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
Jeremy Baxter
f31a7bc41d replace dead links
for link in $(grep -Eor 'https?://[^\\)", ]+' | grep -v dlang.org \
| grep -Eo 'https?://.+'); do (printf "%s: " "$link"; curl -Is "$link" \
| head -n1) | grep -E '4..$'; done

for link in $(grep -Eor '\\$\\(HTTP .+, ' | grep -v dlang.org \
| cut -d' ' -f2- | sed 's/, .*$//'); do out="$(curl -Is "$link")"; \
(! [ $? = 0 ] || printf '%s' "$out" | head -n1 | grep -Eq '4..') \
&& printf '%s\\n' "$link"; done
2024-07-14 15:16:11 +12:00
Nick Treleaven
3972c7cfd3 Fix import 2023-12-29 13:41:09 +00:00
Nick Treleaven
5e93d4f9c9 [std.datetime] Tweak docs
Add links to package.d.
Tweak formatting for SysTime, use PANEL.
Use REF_SHORT after first reference.
List TimeOfDay cast target.
Move currTime link to See Also.
Fix anchor for currTime - need `.` prefix before fully-qualified names.

Part of Issue 24288.
2023-12-21 14:52:25 +00:00
Lucian Danescu
8293310cd8 rename variables 2022-11-09 23:28:55 +02:00
Lucian Danescu
452b1def78 same name fix 2022-11-07 19:20:19 +02:00
Iain Buclaw
352258539c Fix 'the the' typos in Phobos documentation 2022-09-20 21:31:46 +02:00
Iain Buclaw
ce1158defd Remove deprecated std.xml module 2022-08-28 11:30:15 +02:00
Dennis Korpel
5636c8cdcc Fix incorrect return scope annotations 2022-03-22 18:08:31 +00:00
Iain Buclaw
2b5ab004b2 Add preliminary support for GNU/Hurd 2022-03-22 14:11:33 +00:00
Dennis Korpel
fc3cdd9723 Annotate SysTime.opBinary as returnScope 2022-03-02 19:00:44 +01:00
Dennis Korpel
e828cfc62b Annotate SysTime.endOfMonth as return scope 2022-03-02 17:32:58 +00:00
Bastiaan Veelo
b8f0eca5c6 Fix SysTime.fromXXXString() documentation errors.
Most notably, the `fromSimpleString` format was plain wrong.
2022-02-15 23:26:34 +00:00
Atila Neves
575b67a9b4 Ignore SECURITY file when listing timezones
On Arch Linux, there's an ASCII file in /usr/share/zoneinfo with
instructions on how to submit security bug reports, as can be
seen in the listing here:
https://archlinux.org/packages/core/x86_64/tzdata/files/
2021-12-13 19:17:33 +00:00
dkorpel
5d0cfcd13a Fix scope usage of SysTime/TimeZone 2021-11-18 23:49:51 +00:00
Petar Kirov
dfaaf8fa53 Merge remote-tracking branch 'upstream/stable' into merge_stable 2021-11-09 10:30:28 +02:00
Brian Callahan
089a3b8dc4 Add OpenBSD to the unittest. 2021-10-19 23:56:45 +00:00
lucica28
232ca53126
Fix issue 21507 - added precision for function SysTime.toIsoExtString (#8255)
Fix issue 21507 - added precision for function SysTime.toIsoExtString

Signed-off-by: Petar Kirov <PetarKirov@users.noreply.github.com>
Signed-off-by: Razvan Nitu <RazvanN7@users.noreply.github.com>
Merged-on-behalf-of: Razvan Nitu <RazvanN7@users.noreply.github.com>
2021-09-30 06:50:28 +00:00
Max Haughton
6338c93423
Update std/datetime/systime.d
Co-authored-by: Luís Ferreira <contact@lsferreira.net>
2021-08-20 00:08:00 +01:00
Walter Bright
08125241e0 define hnsec 2021-08-19 13:46:57 -07:00
Dennis
7b90fa3e60
remove usage of octal literals (#8168) 2021-07-16 08:10:10 +08:00
dkorpel
9ec24190b1 add explicit scope/return for pure functions 2021-07-11 13:34:25 +00:00
dkorpel
d875674af7 fix local variable lifetimes in systime parsing 2021-06-02 02:12:41 +00:00
berni44
b2019ebab0 Narrow imports of std.math in the rest of phobos. 2021-04-21 03:00:57 +02:00
berni44
6f2a0934a7 Adapt imports of std.format to new structure of std.format. 2021-03-19 13:22:00 +01:00
berni44
c485f11f77 Fix Issue 21700 - Long deprecated Stopwatch std.datetime is still not removed 2021-03-12 13:05:13 +01:00
Boris Carvajal
276053dd07
Remove a few uses of fully qualified names that rely on a DMD bug 2021-02-22 08:16:13 -03:00
Iain Buclaw
c6c8b12852 Implement missing OpenBSD ports in phobos 2021-02-01 18:46:54 +01:00
The Dlang Bot
c6bd15f76c
Merge pull request #7711 from kinke/reduce_ldc_diff
Reduce LDC diff a bit
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2021-01-13 19:35:05 +01:00
Martin Nowak
7f8034d9b7 Merge remote-tracking branch 'upstream/master' into stable 2020-12-18 10:33:07 +01:00
Iain Buclaw
3cae1be7f7 std.datetime.systime: Skip unsupported clocks in unittests
For the same reasons why we can't test all clocks in core.time.
2020-12-01 11:28:05 +01:00
Martin Kinkelin
1ea4effc10 std.datetime.timezone: Add missing import on Android 2020-11-28 20:16:26 +01:00
Martin Kinkelin
8f453556c1 std.datetime.timezone: Fix regression for Android 2020-11-27 22:00:43 +01:00
Tomáš Chaloupka
c757641b99 Make SysTime.stdTime getter @nogc 2020-11-18 12:27:23 +01:00
Luís Ferreira
7842db96a6 timezone: wrap dirEntries foreach in a trusted lambda instead of making the whole function @trusted
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2020-10-27 19:53:49 +01:00
Nathan Sashihara
b8e9e70e90 Fix Issue 20370 - On POSIX, std.file.copy only copies the file times at second precision 2020-09-16 09:31:41 +02:00
Nathan Sashihara
453faadf5b Replace is(Unqual!T == Unqual!U) with is(immutable T == immutable U) for speed & memory usage 2020-08-03 15:07:32 +02: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
Jacob Carlborg
dc36c1439d Fix location of UTC timezone file for unit test on iOS derived platforms 2020-03-03 12:51:07 +01:00
Jacob Carlborg
7d28b50441 Add support for iOS derived platforms to datetime 2020-03-03 12:51:07 +01:00
Robert Schadek
1948a81e7e
Typo fix in Systime describtion
ntended -> intended
2020-03-02 09:25:48 +00:00
Adam D. Ruppe
ae93f5317c Use consistent quickindex wrapper around hand-written list-of-links tables 2020-02-21 21:04:05 -05:00
drug007
0f54e79ea2 datetime symbols deprecation schedule updated 2020-02-14 15:29:14 +03:00
Nicholas Wilson
18ac3048db
Merge pull request #7373 from burner/std.datetime.package_assert_messages
adding assert messages to std.datetime.package
2020-01-30 13:09:35 +08:00
Robert Schadek
861b260121 adding assert messages to std.datetime.timezone 2020-01-27 11:46:21 +00:00
Robert Schadek
5762bae076 adding assert messages to std.datetime.package 2020-01-27 11:33:23 +00:00