Can someone show me an example how to properly use the getRelativeDateTimeString() that is detailed here.
Can someone show me an example how to properly use the getRelativeDateTimeString() that is
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.
I guess you are talking about
getRelativeDateTimeString, which is pointed to by your link.Example for
now, with comments detailing all params:Other values for
MINUTE_IN_MILLISandYEAR_IN_MILLISinclude:SECOND_IN_MILLISMINUTE_IN_MILLISHOUR_IN_MILLISDAY_IN_MILLISWEEK_IN_MILLISYEAR_IN_MILLIS