AutoTools Converting milliseconds into time

Discussion in 'AutoApps' started by HappyHermet, Oct 24, 2016.

  1. HappyHermet

    HappyHermet New Member

    Joined:
    Apr 10, 2016
    Messages:
    24
    Likes Received:
    0
    Hi guys,

    I'm trying to use the AutoTools Time function to calculate the difference between a time in milliseconds and now.

    The time in milliseconds is 1477178768, which should read as 23/10/2016 00:26 (UK time), the current date and time is 24/10/2016 15:20.

    Whenever I use the timespan between dates when the start date is 1477178768 and the end date is now, the %atdatesdays variable returns 6?

    Any idea where I'm going wrong?

    Thanks

    HH

    Sent from my Nexus 6 using Tapatalk
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    806
  3. HappyHermet

    HappyHermet New Member

    Joined:
    Apr 10, 2016
    Messages:
    24
    Likes Received:
    0
    Thanks for the quick reply!

    I've checked the post and watched the video, but the variable %atdatestotaldays returns 17081.527?

    Sent from my Nexus 6 using Tapatalk
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    806
    You should use 1477178768000 since 1477178768 is in seconds :)
     
    HappyHermet likes this.
  5. HappyHermet

    HappyHermet New Member

    Joined:
    Apr 10, 2016
    Messages:
    24
    Likes Received:
    0
    Ahhhh!

    Its amazing what another pair of eyes will spot!

    Thanks for your help, I've been looking at that for days. That's solved the problem!

    As always, you're a great help and produce really useful apps.

    Cheers

    Sent from my Nexus 6 using Tapatalk
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    806
    Glad you got it! :) Don't forget to rate the app 5 stars on google play if you like it please ;)
     
  7. HappyHermet

    HappyHermet New Member

    Joined:
    Apr 10, 2016
    Messages:
    24
    Likes Received:
    0
    Done

    Sent from my Nexus 6 using Tapatalk
     
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    806
    Thank you! :)
     

Share This Page