How do you convert date taken from a bash script to milliseconds in a Java program?
- by Matt Pascoe
I am writing a piece of code in Java that needs to take a time sent from a bash script and parse the time to milliseconds. When I check the millisecond conversion on the date everything is correct except for the month I have sent which is January instead of March.
Here is the variable I create in the bash script, which later in the script I pass…