AutoTools AutoTools Time conversion problem for "weekday number"

Discussion in 'AutoApps' started by kalhimeo, Mar 11, 2018.

  1. kalhimeo

    kalhimeo New Member

    Joined:
    Jan 12, 2017
    Messages:
    3
    Likes Received:
    0
    Dear Joao,

    I have a problem with the AutoTools Time function when I try to convert an epoch to "weekday number" using the parameter "u" (1= Monday, 2= Tuesday, etc.).

    I simply cannot get a return value, the result stored in the output variable is empty. I tried with parameter "E" or "EEEE" and that works fine.

    Is there anyway to fix this problem ?

    Thank you very much !
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Hi there, thanks for the report. Is that a standard way to format dates in Java?
     
  3. kalhimeo

    kalhimeo New Member

    Joined:
    Jan 12, 2017
    Messages:
    3
    Likes Received:
    0
    Yes, I found that parameter via the link to Oracle documentation that you provide in AutoTools by clicking the "Help" icon in Tasker (I cannot post the exact URL due to forum restrictions) :

    docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

    Thanks for your fast reply :)
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
  5. kalhimeo

    kalhimeo New Member

    Joined:
    Jan 12, 2017
    Messages:
    3
    Likes Received:
    0
    Thank you for the info ! In the meantime I will use the weekday in letters, but the downside is that it makes it language dependent :p

    Keep up the good work !
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Thank you for understanding! :)
     

Share This Page