Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How does java convert the time of long type into the form of year, month and day?
How does java convert the time of long type into the form of year, month and day?
Implemented in java code:

Public static string long tote(long lo){

Date date = new date (LO);

simple date format SD = new simple date format(" yyyy-MM-DD HH:MM:ss ");

Returns sd.format (date);

?

}

Data expansion:

Long is a computer programming language, which is the representation of data types in programming. Long is generally used to express length. Long is a signed 64-bit integer with the range of -2 63-2 63- 1 int 64.