Question regarding addMinutes

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
husky
Posts: 132
Joined: 29 Oct 2016 13:41
Location: Omaha, Nebraska, USA
Contact:

Question regarding addMinutes

Post by husky » 07 Aug 2017 23:33

Hello,
Gives time date_now= "{getDate(),dateformat,hhmmss}";

results in 060137.

Then addMinutes(date_now, 5);

I'd expect result as 060637.

Instead I got: 360137.

What causes the hour to become 36?


Thank You

Husky
"Basic research is what I'm doing when I don't know what I'm doing"

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Question regarding addMinutes

Post by Desmanto » 08 Aug 2017 06:17

I replicate you script and got it properly, the minutes is added to the minute. Maybe you need debug dialog to check the full value of the date_now, before and after adding.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
husky
Posts: 132
Joined: 29 Oct 2016 13:41
Location: Omaha, Nebraska, USA
Contact:

Re: Question regarding addMinutes

Post by husky » 10 Aug 2017 02:42

Desmanto,

Thank You for the reply.

I'll try to debug the flow.


Regards'

Husky
"Basic research is what I'm doing when I don't know what I'm doing"

Post Reply