Convert a given date and time to UNIX Time Stamp
in
Programming Questions
•
2 months ago
Hi! I want to convert this output to UNIX Time Stamp
but unable to find out how... It´s the current system date with zero hours/minutes/seconds.
Can someone help me with an example? Would be very appreciated!
Best regards!
- int day = day();
- int month = month();
- int year = year();
- int hour = 0; //hour();
- int minute = 0; //minute();
- int second = 0; //second();
- println(day+"/"+month+"/"+year);
- println(hour+":"+minute+":"+second);
1