Commit graph

299 commits

Author SHA1 Message Date
Sebastian Wilzbach
2dfbc51f17 Standardize whitespace after imports
Unified with:

sed -E "s/import\s*([^ ]+)\s*:\s*(.*(,|;))/import \1 : \2/" -i **/*.d
2016-05-29 22:09:56 +02:00
Brian Schott
88966f953c Merge pull request #4333 from BBasile/issue-15991
fix issue 15991 - std.datetime.StopWatch is not @nogc
2016-05-18 14:46:38 -07:00
Basile Burg
41de4f17b7 fix issue 15991 - std.datetime.StopWatch is not @nogc 2016-05-16 15:38:36 +02:00
Sebastian Wilzbach
484f7bfbe0 enforce: whitespace after catch 2016-05-14 15:28:43 +03:00
Brian Schott
772f0266c0 Merge pull request #4317 from BBasile/fix_wtz
hotfix (tester) - Easter Island & Haiti Windows time zone
2016-05-13 00:57:09 -07:00
Basile Burg
700b7af233 fix Easter Island WIndows time zone 2016-05-13 08:50:41 +02:00
Jack Stouffer
a15dda6762 Fixed long lines in std/datetime.d 2016-05-10 20:51:39 -04:00
David Nadlinger
fda8267b2c Merge pull request #4250 from wilzbach/remove_at_property
trivial: remove @property from enums
2016-04-27 21:14:23 +01:00
Dmitry Olshansky
c1027f1970 Merge pull request #4246 from wilzbach/sed_spaces_part_2
style fix: add space after 'for' operator
2016-04-27 16:17:18 +04:00
Sebastian Wilzbach
d9de53677e trivial: remove @property from enums 2016-04-27 12:44:57 +03:00
Sebastian Wilzbach
d1714c9afb minor style fixes 2016-04-27 04:18:22 +03:00
Sebastian Wilzbach
5a8988c149 style fix: add space after for operator 2016-04-27 02:04:02 +03:00
Brian Schott
ff298c710d Merge pull request #4240 from wilzbach/space_between_operators_containers
fix space between operators
2016-04-26 14:13:36 -07:00
Dmitry Olshansky
22c7f11265 Merge pull request #4199 from Biotronic/fix-8384
Partial fix of Issue 8384 - std.conv.to should allow conversion betwe…
2016-04-27 00:14:06 +04:00
Sebastian Wilzbach
3d67cd228c style fix: space between operators 2016-04-26 22:26:20 +03:00
Dmitry Olshansky
29b0c559f7 Merge pull request #4089 from CyberShadow/pull-20160316-181610-std-file-subsecond
fix Issue 15803 - std.file should support sub-second file time precision on POSIX
2016-04-23 03:20:40 +04:00
biotronic
60a233372a Partial fix of Issue 8384 - std.conv.to should allow conversion between any pair of string/wstring/dstring/char*/wchar*/dchar* 2016-04-16 00:26:54 +00:00
Vladimir Panteleev
7e49cce48d std.datetime: Update Windows time zones for KB3148851 2016-04-13 21:00:47 +00:00
Vladimir Panteleev
f68fc7da6d std.datetime: Add toTimeSpec 2016-03-17 00:25:21 +00:00
Jonathan M Davis
c08032edd4 Merge pull request #4068 from nrTQgc/netbsd_patch
netbsd patch
2016-03-10 22:04:53 -08:00
Nikolay Tolstokulakov
eff74ed2a2 netbsd patch 2016-03-11 10:10:47 +06:00
Steven Schveighoffer
bbc560788f Merge pull request #3983 from jmdavis/timezone
Fix compliance issues with SysTime.to*String and SysTime.from*String.
2016-03-10 12:02:00 -05:00
Sebastian Wilzbach
4f5dd92326 std.datetime - bring plaintext examples back in sync with tests 2016-03-04 12:07:27 +02:00
H. S. Teoh
5c53be7676 Merge pull request #3977 from joakim-noah/android
Android update
2016-02-23 13:51:42 -08:00
Steven Schveighoffer
b0acb7a394 Fix remaining import deprecation messages 2016-02-22 16:03:12 -05:00
Jonathan M Davis
2567a2493a Fix issue# 15654: SysTime.toISOString formats time zones incorrectly.
Previously, it formatted the time zone the same as toISOExtString and
put a colon between the hours and minutes - which is correct for the ISO
extended format, but not the non-extended format. Now, it formats it
correctly per the ISO 9601 standard.

fromISOString temporarily accepts both the extended and non-extended
formats to avoid breaking any programs that have been writing out ISO
strings to read back in later, but eventually, we'll make it so that it
only accepts the non-extended format like it's supposed to.
2016-02-20 13:10:47 -08:00
Joakim
10c01a0614 On Android, update std.datetime to extract timezone data and some other fixes. 2016-02-10 14:25:42 +05:30
Jonathan M Davis
0faa191fc8 Fix issue# 15655.
SysTime.from*String accepted single digit time zones and minutes > 59,
which is against the ISO standard. This commit fixes that.
2016-02-09 22:25:24 -08:00
Jonathan M Davis
7ded5fcf68 Rename SimpleTimeZone.to/fromISOString to to/fromISOExtString.
This is per issue# 15654.
2016-02-07 18:50:27 -08:00
Martin Nowak
6be2087858 Merge pull request #3824 from jmdavis/issue15376
Fix for issue# 15376. Get time zone conversions at runtime.
2016-01-23 15:05:59 +01:00
Jonathan M Davis
635cecee55 Fix for issue# 15376. Get time zone conversions at runtime.
It's proven to be a maintenance problem to maintain the time zone
conversions between the IANA TZ database names and the Windows time zone
names in std.datetime. So, rather than compiling them in, this provides
a way to get them at runtime (which will also make it so in the future,
older releases can work properly on up-to-date Windows boxes, which is
not the case currently with regards to time zone conversions). The
current conversion functions can be deprecated after parseTZConversions
has been out for a release (so that it's possible for users to compile
their code for two releases in a row without getting deprecation
messages).
2016-01-23 04:43:26 -08:00
Martin
756e406281 [Windows] std.datetime: Add North Korean timezone
MS recently added it with https://support.microsoft.com/en-us/kb/3093503
2016-01-21 20:57:03 +01:00
Benjamin L. Merritt
5f08c058ab Changed "Examples:" in Ddoc to "Example:" 2015-12-17 18:32:41 -08:00
Jonathan M Davis
3312e296ef Deprecate the non-benchmarking uses of TickDuration in std.datetime. 2015-12-03 00:38:34 -08:00
Lance Bachmeier
0f23dbae28 Made the new unittests consistent. 2015-11-30 16:21:52 -06:00
Lance Bachmeier
c536217a0a Changed the Examples section to a commented unittest. Made the same changes to SysTime.opBinary. 2015-11-30 16:01:48 -06:00
Lance Bachmeier
fcdf67b36e Added an example of usage of DateTime opBinary. Added a reference to core.time.Duration 2015-11-30 15:06:11 -06:00
Brian Schott
40b2e45e33 Merge pull request #3838 from jmdavis/deprecations
Move some deprecations along.
2015-11-29 11:57:28 -08:00
Vladimir Panteleev
e90be60a67 Merge pull request #3839 from aG0aep6G/ddlink
use DDLINK/DDSUBLINK instead of LINK2 and raw HTML
2015-11-27 04:54:52 +02:00
anonymous
6832caf0be use DDLINK/DDSUBLINK instead of LINK2 and raw HTML
DDLINK/DDSUBLINK use ROOT_DIR which is more robust than a relative path.
2015-11-26 16:04:44 +01:00
Jonathan M Davis
d34164a2ea Move some deprecations along. 2015-11-26 00:28:38 -08:00
Dragos Carp
75cbbef0ab Add asserts for the "compiles" tests 2015-11-16 03:04:07 +01:00
Dragos Carp
c17a621bf2 Fix timezone issue 2015-11-13 05:33:57 -04:30
Dragos Carp
eb293b5063 Fix issue 15320 2015-11-13 03:45:29 +01:00
JakobOvrum
527eeb6e06 Merge pull request #3796 from CyberShadow/pull-20151104-214649
std.datetime: Remove redundant try/catch around GetTimeZoneInformation
2015-11-06 18:44:32 +09:00
Vladimir Panteleev
e1774b6f69 std.datetime: Remove redundant try/catch around GetTimeZoneInformation
GetTimeZoneInformation is a Windows API function, and thus will never
throw a D exception. Presumably, at the time this code was written,
it was not marked as nothrow. However, instead of fixing the function's
signature, the code contained try/catch blocks with messages such as
assert(0, "The impossible happened. GetTimeZoneInformation() threw.");
2015-11-04 21:48:29 +00:00
Kai Nacke
bbd5882948 Add missing functionality for OpenSolaris to std.datetime.
Requires https://github.com/D-Programming-Language/druntime/pull/1423.
2015-11-01 12:04:54 +01:00
Walter Bright
cf22992cbb Merge pull request #3768 from CyberShadow/pull-20151024-051829
HTML fixes
2015-10-24 15:05:00 -07:00
Vladimir Panteleev
86cf380007 HTML fixes 2015-10-24 06:19:23 +00:00
Brian Schott
6ee65f477c Merge pull request #3709 from jmdavis/isTimePoint
Code reduction and clean-up for std.datetime.isTimePoint.
2015-10-16 22:40:32 -07:00