www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12846] New: Phobos git HEAD: std.datetime spewing out tons of

https://issues.dlang.org/show_bug.cgi?id=12846

          Issue ID: 12846
           Summary: Phobos git HEAD: std.datetime spewing out tons of
                    deprecation messages
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: hsteoh quickfur.ath.cx

Updated dmd/druntime/phobos to git HEAD today, and got a whole bunch of
deprecation messages from std.datetime:

-----
/usr/src/d/phobos/std/datetime.d(27194): Deprecation: function
core.time.Duration.hours is deprecated - Please use getOnly instead. Too many
people were confusing hours with total!"hours"().
/usr/src/d/phobos/std/datetime.d(27194): Deprecation: function
core.time.Duration.minutes is deprecated - Please use getOnly instead. Too many
people were confusing minutes with total!"minutes"().
/usr/src/d/phobos/std/datetime.d(27196): Deprecation: function
core.time.Duration.hours is deprecated - Please use getOnly instead. Too many
people were confusing hours with total!"hours"().
/usr/src/d/phobos/std/datetime.d(27196): Deprecation: function
core.time.Duration.minutes is deprecated - Please use getOnly instead. Too many
people were confusing minutes with total!"minutes"().
/usr/src/d/phobos/std/datetime.d(27194): Deprecation: function
core.time.Duration.hours is deprecated - Please use getOnly instead. Too many
people were confusing hours with total!"hours"().
/usr/src/d/phobos/std/datetime.d(27194): Deprecation: function
core.time.Duration.minutes is deprecated - Please use getOnly instead. Too many
people were confusing minutes with total!"minutes"().
/usr/src/d/phobos/std/datetime.d(27196): Deprecation: function
core.time.Duration.hours is deprecated - Please use getOnly instead. Too many
people were confusing hours with total!"hours"().
/usr/src/d/phobos/std/datetime.d(27196): Deprecation: function
core.time.Duration.minutes is deprecated - Please use getOnly instead. Too many
people were confusing minutes with total!"minutes"().
-----

This probably should be fixed in std.datetime. :)

--
Jun 03 2014