getTime()
retrieves the milliseconds since Jan 1, 1970 GMT passed to the constructor. It should not be too hard to get the Unix time (same, but in seconds) from that.
More Related Contents:
- specific date string format [duplicate]
- How to get the day from timezone in java [duplicate]
- How to parse a date? [duplicate]
- How do you format the day of the month to say “11th”, “21st” or “23rd” (ordinal indicator)?
- How to convert java.util.Date to java.sql.Date?
- Dates with no time or timezone component in Java/MySQL
- How do I check if a date is within a certain range?
- Adding days to a date in Java [duplicate]
- Unix epoch time to Java Date object
- Java: Check the date format of current string is according to required format or not [duplicate]
- Java, Calculate the number of days between two dates [duplicate]
- How to get the first day of the current week and month?
- How can I calculate a time span in Java and format the output?
- Difference between year-of-era and week-based-year?
- Date object SimpleDateFormat not parsing timestamp string correctly in Java (Android) environment
- Calculating difference in dates in Java
- Convert String to Calendar Object in Java
- Convert a date format in epoch
- How to iterate through range of Dates in Java?
- Converting String to Date using SimpleDateFormat is returning random date [duplicate]
- How to convert “Mon Jun 18 00:00:00 IST 2012” to 18/06/2012?
- Parsing CSV in java
- Why does Java’s Date.getYear() return 111 instead of 2011?
- In Java, get all weekend dates in a given month
- Parse String date in (yyyy-MM-dd) format
- Converting date-string to a different format
- Java Date Format for Locale
- java: how to mock Calendar.getInstance()?
- Date vs TimeStamp vs calendar?
- Get Daylight Saving Transition Dates For Time Zones in Java