ConnectedText
September 08, 2010, 12:44:59 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: advanced Time and date formatting  (Read 286 times)
0 Members and 1 Guest are viewing this topic.
klub2
Beta testers
Senior
***

Karma: +1/-0
Offline Offline

Posts: 96


View Profile
« on: March 08, 2010, 10:01:45 AM »

Would it be possible to add some options for formatting the time and date?  For example, I'd like to add the last modified timestamp to the footer of my project so each topic will generate a timestamp when exported.  The (($NOW) macro produces:

"20100308 1115"

I could manually produce the timestamp as:
(($WEEKDAY)), (($CURRENTMONTHNAME)) (($CURRENTDAY)), (($CURRENTYEAR)) ((($CURRENTTIME)))
"1115, Monday, March 08, 2010"

But even the second longer statement does not format the time with a colon (11:15). 

Would it be possible to add formatting options to some of these macros? 
examples:
(($NOW|full)) = "11:15, Monday, March 08, 2010"
(($NOW|short)) = "20100308 1115"
(($NOW|local)) = uses local workstation settings
(($TODAY|YMD)) = 2010/03/08
(($TODAY|MDY)) = 03/08/2010
etc....

This would be especially helpful to me. 

It would also be helpful to have (($ModifiedHOUR)) and (($ModifiedMINUTE)) separately so I could manually create the format as desired with a separator. 

thanks much

Logged
klub2
Beta testers
Senior
***

Karma: +1/-0
Offline Offline

Posts: 96


View Profile
« Reply #1 on: March 08, 2010, 10:07:38 AM »

I mistakenly used the (($NOW)) example to produce a "last modified" timestamp instead of using the (($TOPICLASTMODIFIED)).  In fact, there is no way to manually format the last modified string since only this one macro exists.

I'm sure all of this could be done with some scripting, but it seems like a nice enhancement to the tool
Logged
klub2
Beta testers
Senior
***

Karma: +1/-0
Offline Offline

Posts: 96


View Profile
« Reply #2 on: March 23, 2010, 11:10:29 AM »

...available in 4.0.0.6.  Awesome how quickly you take our little requests and roll them into your tool!

really appreciate it.
Logged
Eduardo Mauro
Administrator
Wizard
*****

Karma: +10/-0
Online Online

Posts: 2139


View Profile
« Reply #3 on: March 23, 2010, 11:42:15 AM »

Thanks. That's the only way we can distinguish ourselves from the competition. We don't talk, we make.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!