> im not sure how i could change the Java Function in a US time format that tasker can read.
Try replacing ' hh:mm a' with kk:mm
Example--
> Java Function [
> Return:formatter
> Class Or Object:SimpleDateFormat
> Function:new{SimpleDateFormat} (String)
> Param:MM/dd/yyyy kk:mm]
>
That should return it in 24 hr format.
To get back to 12 hr format for a say action use variable convert seconds -> long date time . Then split out the time.
2. When converting seconds to date time both medium and short format which is fine because it gives me times like 18:00 or 18.00 the problem with that seems to be sheen I do a variable selection the positions change. Example is 1-27-2016 but next month it will be 2-1-2015 1 symbol different. Not sure if I can use regular expression to select the time with dd:dd or dd.dd selection. Same is true for second to date time medium.
Here is a thought tho... Can I somehow take the Java output which is mm/dd/yyyy 18:00 to get the time but give -15min so a new variable would be 17:45?
This gives new meaning to the term delayed response... :)
> It did return it in a proper format of mm/dd/yyyy 18:00. I converted date to seconds but I'm still having problems.
> 1. The convert second to date gives me a long string which I like visually but I don't know how to use the PM time to make a variable for Time condition.
The tasker variable time context will accept times in epoch time (seconds).
>
> 2. When converting seconds to date time both medium and short format which is fine because it gives me times like 18:00 or 18.00 the problem with that seems to be sheen I do a variable selection the positions change. Example is 1-27-2016 but next month it will be 2-1-2015 1 symbol different. Not sure if I can use regular expression to select the time with dd:dd or dd.dd selection. Same is true for second to date time medium.
If you still need to parse out the numbers, use the 'variable split' action.
> splitter worked lets see how it goes. thanks!
If you need to split on a space you need to set a local variable to a virtual space then use the variable as the splitter.
>
It seems like you can just use %TIMES (epoch time) if you are just trying to set a variable time context.