Commit graph

355 commits

Author SHA1 Message Date
Jack Stouffer
4ce5d44dbb Use underscores for number literals with five or more digits 2017-02-23 09:45:49 -05:00
Sebastian Wilzbach
a2c6398332 Automatically add spaces to binary operators (==)
command:

sed -E "s/([[:alnum:]]) == ([[:alnum:]])/\1 == \2/g" -i **/*.d
sed -E "s/([[:alnum:]])== ([[:alnum:]])/\1 == \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) ==([[:alnum:]])/\1 == \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
425ab667a3 Automatically set the range style from a..b -> a .. b
Commands:

sed -E "s/([[:alnum:]])[.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]])[.][.] ([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) [.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
2017-02-22 05:37:31 +01:00
Sebastian Wilzbach
12fe427d4b [Style conversion fixup]: long-lines in std.datetime 2017-02-21 16:40:20 +01:00
Sebastian Wilzbach
805c720595 Unify Phobos by ensuring there's always a space after cast(...)
Command:

sed -E 's/([^"])cast\(([^)]*?)\)([[:alnum:]])/\1cast(\2) \3/g' -i **/*.d
2017-02-21 16:40:20 +01:00
Sebastian Wilzbach
87dec58a41 DStyle: Constraints on declarations should have the same indentation level 2017-02-17 07:36:23 +01:00
Andrei Alexandrescu
6dc32a9db4 Merge pull request #5065 from WalterBright/datetime-scope
[scope] add annotations to std.datetime
2017-02-11 08:08:35 -05:00
Jonathan M Davis
130714acdd Move deprecations along. 2017-01-24 03:08:10 -08:00
Walter Bright
90f2e77bca [scope] add annotations to std.datetime 2017-01-24 01:52:41 -08:00
Sebastian Wilzbach
18ecb6b72c Make more modules publicly runnable on dlang.org 2017-01-06 23:29:55 +01:00
Oleg Nykytenko
5cb2d0ae49 Add spaces around the minus signs. 2017-01-06 13:44:26 +02:00
Oleg Nykytenko
4aec11a680 Solaris: fix std.datetime:LocalTime.utcToTZ issue. 2017-01-05 10:49:27 +02:00
WalterW
aa55068709 Fix random std.datetime unit test failure 2016-12-25 20:26:08 -05:00
Sebastian Wilzbach
b82ae35fd7 Use void for auto function without return statement 2016-12-08 12:32:14 +01:00
e-y-e
befa0bfb6e Updated Flag uses to Yes/No structs 2016-09-29 14:45:20 +01:00
e-y-e
46824b631f Changed yes/no enums to Flags in std.datetime, updating uses to Yes/No structs. 2016-09-29 14:45:19 +01:00
Jonathan M Davis
5c2be71132 Move deprecations along. 2016-09-07 00:15:29 -07:00
Jack Stouffer
edd6aff392 More tests 2016-08-08 15:39:48 -04:00
Jack Stouffer
841a76e4fd Better-er tests 2016-08-03 15:51:57 -04:00
Jack Stouffer
ded1bd5cb6 64bit MurmurHash2 2016-08-03 15:08:12 -04:00
Jack Stouffer
a7684062da Better tests 2016-08-03 15:04:11 -04:00
Jack Stouffer
fb2c8dd7dc Add toHash to SysTime 2016-08-01 13:47:21 -04:00
Steven Schveighoffer
10af12288d Fix formatting to appease travis 2016-07-21 08:44:11 -04:00
H. S. Teoh
c6bcfc1308 Merge pull request #4610 from JackStouffer/algorithm
Remove package wide std.algorithm imports
2016-07-20 12:52:44 -07:00
Martin Nowak
7f61127d00 Merge remote-tracking branch 'upstream/stable' into merge_stable 2016-07-20 11:40:15 +02:00
Jonathan M Davis
4c0cf16711 Deprecate TZ conversion functions in std.datetime.
The were previously scheduled to be deprecated, and now they've been
deprecated.
2016-07-18 14:56:03 -07:00
Jack Stouffer
68c004d22d Removed package wide std.algorithm imports from std.datetime 2016-07-18 09:49:03 -04:00
Walter Bright
c3166388dd Merge pull request #4594 from atilaneves/std_datetime_ut
Add @system and @safe to std.datetime unit tests
2016-07-13 13:33:28 -07:00
Atila Neves
8c414fda03 Add @safe and @system to std.datetime unit tests part 11 2016-07-12 16:33:05 +02:00
Atila Neves
f6394a4199 Add @safe and @system to std.datetime unit tests part 10 2016-07-12 16:32:56 +02:00
Atila Neves
8ccfd2a666 Add @safe and @system to std.datetime unit tests part 9 2016-07-12 16:32:48 +02:00
Atila Neves
371dfa3b00 Add @safe and @system to std.datetime unit tests part 8 2016-07-12 16:32:36 +02:00
Atila Neves
95ce57c45e Add @safe and @system to std.datetime unit tests part 7 2016-07-12 16:32:28 +02:00
Atila Neves
997ee9faf6 Add @safe and @system to std.datetime unit tests part 6 2016-07-12 16:32:18 +02:00
Atila Neves
64dfdd5f95 Add @safe and @system to std.datetime unit tests part 5 2016-07-12 16:32:07 +02:00
Atila Neves
cc9b40be29 Add @safe and @system to std.datetime unit tests part 4 2016-07-12 16:31:52 +02:00
Atila Neves
d68dd4fd38 Add @safe and @system to std.datetime unit tests part 3 2016-07-12 16:31:36 +02:00
Atila Neves
89a6713668 Add @system and @safe to std.datetime unit tests part 2 2016-07-12 16:31:10 +02:00
Atila Neves
695c1ef9e9 Add @safe and @system to std.datetime unit tests part 1 2016-07-12 16:30:55 +02:00
Jack Stouffer
48424da293 Removed unused variables from std.datetime 2016-07-11 09:30:28 -04:00
Martin Nowak
aa88e7bc8e fix test failure for updated Windows TZs
- change to list all missing WinTZ translations when running std/datetime
  unittests w/ -version=UpdateWindowsTZTranslations so they can be
  updated manually
2016-07-09 18:13:11 +02:00
Jack Stouffer
9b3991ec42 Fixed local imports in std.datetime 2016-06-30 18:06:58 -04:00
Andrei Alexandrescu
31c595c820 Merge pull request #4432 from wilzbach/kill_web
Remove the WEB macro in favor of HTTP
2016-06-16 20:52:35 -04:00
Steven Schveighoffer
9f97025940 Add missing time zones. Fixes build issue. 2016-06-16 14:31:57 -04:00
Sebastian Wilzbach
ec47ac4224 Remove the WEB macro in favor of HTTP
replacement: sed 's/\$(WEB/\$(HTTP/g' -i **/*.d
2016-06-16 00:14:51 +02:00
Andrei Alexandrescu
9753c3159b Merge pull request #4411 from wilzbach/kill_web_http
Fix broken WEB links
2016-06-15 17:47:43 -04:00
Dmitry Olshansky
edf4da0bbe Merge pull request #4373 from joakim-noah/datetime_imports
std.datetime: use locally-scoped selective imports and document module-scope symbol imports
2016-06-08 22:31:40 +04:00
anonymous
7b6745727b Ddoc: CXREF -> REF (sed)
Done by:

arg='\s*([^(),]*)'
from='\$\(CXREF\s'$arg','$arg'\)'
to='$(REF \2, core,\1)'
(find . -type f -name "*.d" -print0; \
    find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r "s/$from/$to/g"
2016-06-08 00:22:03 +02:00
Sebastian Wilzbach
49531e3c73 fix broken web links
sed 's/(WEB http:\/\//(WEB /' -i **/*.d
2016-06-07 18:54:17 +02:00
Bastiaan Veelo
20b44d41e1 Fix 404. 2016-06-06 02:19:28 +02:00