What do you mean "Without integrating"? For it to check if you're logged in or not it would have to loop through all of your character files checking a specific token, specifically when the membership started.
Here is a method which uses the GregorianCalender class.
Code:
public void checkDateAndTime()
{
Calendar cal = new GregorianCalendar();
int YEAR = cal.get(Calendar.YEAR);
int MONTH = cal.get(Calendar.MONTH) + 1;
int DAY = cal.get(Calendar.DAY_OF_MONTH);
int HOUR = cal.get(Calendar.HOUR_OF_DAY);
int MIN = cal.get(Calendar.MINUTE);
int SECOND = cal.get(Calendar.SECOND);
String day = "";
String month = "";
String hour = "";
String minute = "";
String second = "";
if (DAY < 10)
day = "0" + DAY;
else
day = "" + DAY;
if (MONTH < 10)
month = "0" + MONTH;
else
month = "" + MONTH;
if (HOUR < 10)
hour = "0" + HOUR;
else
hour = "" + HOUR;
if (MIN < 10)
minute = "0" + MIN;
else
minute = "" + MIN;
if (SECOND < 10)
second = "0" + SECOND;
else
second = "" + SECOND;
c.date = day + "/" + month + "/" + YEAR;
c.currentTime = hour + ":" + minute + ":" + second;
}
Properties p = new Properties();
This could be used for what you're trying to achieve.