Module Unix contains the time function to get the seconds since the Epoch but is there a platform-independent way to get the same value and ensure the code compiles in non-Unix deployments ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Despite its name, Unix module is also available on Windows and other platforms. You’re safe to use
Unix.time()for platform-independent code.