SphereCommunity
account unused days - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: account unused days (/Thread-account-unused-days)



account unused days - Art - 09-08-2012 07:53 PM

Hello.
How i can get amount of days when account was not used?
I tried <account.xx.unused>, also tried <account.xx.lastconnectdate.format %d>, both are wrong.


RE: account unused days - RanXerox - 09-09-2012 08:07 AM

ACCOUNT is a server object... Did you try SERV.ACCOUNT.xxx


RE: account unused days - Art - 09-09-2012 08:06 PM

Of course i know it is serv object. Just wrote here without serv.


RE: account unused days - Skul - 09-11-2012 05:26 PM

Art, let's use <explode> to do this, here's a quick example to break up the year/month/day in <serv.account.xx.lastconnectdate>
Code:
[function example]
return Year: <strarg <explode /, <serv.account.0.lastconnectdate>>> Month: <strarg <streat <explode /, <serv.account.0.lastconnectdate>>>> Day: <strarg <streat <streat <explode /, <serv.account.0.lastconnectdate>>>>>



RE: account unused days - Art - 09-13-2012 05:54 PM

Oh yes, thank you.