www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - std.datetime.systime: days Deprecation message

reply Vino <vino.bheeman hotmail.com> writes:
Hi All,

   Request your help on the below Deprecation message.

import std.datetime.systime: Clock, days, SysTime;

void main (int AgeSize) {
int AgeSize = 1
auto ct2 = Clock.currTime(), st2 = ct2 + days(-AgeSize);
}
test.d(30): Deprecation: Symbol core.time.days is not visible 
from module test.d because it is privately imported in module 
systime


From,
Vino.B
Apr 07 2018
parent reply Alex <sascha.orlov gmail.com> writes:
On Saturday, 7 April 2018 at 17:25:07 UTC, Vino wrote:
 Hi All,

   Request your help on the below Deprecation message.

 import std.datetime.systime: Clock, days, SysTime;

 void main (int AgeSize) {
 int AgeSize = 1
 auto ct2 = Clock.currTime(), st2 = ct2 + days(-AgeSize);
 }
 test.d(30): Deprecation: Symbol core.time.days is not visible 
 from module test.d because it is privately imported in module 
 systime


 From,
 Vino.B
As far as I understand it, days are located in core.time. import core.time : days;
Apr 07 2018
parent Vino <vino.bheeman hotmail.com> writes:
On Saturday, 7 April 2018 at 18:12:00 UTC, Alex wrote:
 On Saturday, 7 April 2018 at 17:25:07 UTC, Vino wrote:
 Hi All,

   Request your help on the below Deprecation message.

 import std.datetime.systime: Clock, days, SysTime;

 void main (int AgeSize) {
 int AgeSize = 1
 auto ct2 = Clock.currTime(), st2 = ct2 + days(-AgeSize);
 }
 test.d(30): Deprecation: Symbol core.time.days is not visible 
 from module test.d because it is privately imported in module 
 systime


 From,
 Vino.B
As far as I understand it, days are located in core.time. import core.time : days;
Hi Alex, Thank you, that resolved the issue. From, Vino.B
Apr 08 2018