Door Games Unlimited

Welcome, Guest.


Subject: Date format setting or system toggle options Date: Thu Jul 31 2014 19:58:08
From: Nightfox To: echicken

  Re: Date format setting or system toggle options
  By: Nightfox to echicken on Thu Jul 31 2014 19:56:10

 ec>> var t = time();
 ec>> var dmy = (strftime("%d/%m/%y", t) == system.datestr(t)) ? true :
 ec>> false;

 Ni> Thanks.  :)

By the way, the ? true : false is redundant.  This should be enough to get a
boolean value:
var dmy = (strftime("%d/%m/%y", t) == system.datestr(t));

Nightfox

---
 ■ Synchronet ■ Digital Distortion BBS - digitaldistortionbbs.com

Previous Message       Next Message
In Reply To: Date format setting or system toggle options (Nightfox)
Replies: Date format setting or system toggle options (echicken)