[pmwiki-users] Simple Timestamp

Laurent Meister meister at apfelwiki.de
Thu Jan 12 01:28:29 CST 2006


Hey everybody,

I want to make a simple time stamp, like the one is generated, when  
you write the 4 ~~~~.

So I looked after the markup for "~~~~" and made my timestamp markup  
like this:

	$ROSPatterns['/(?<!~)~time(?!~)/'] = '[-$CurrentTime-]';
   	Markup('~time','<links','/(?<!~)~time(?!~)/',"[-($CurrentTime)-]");
   	
But finally  I'm not happy with "~time". Something like (:timestamp:)  
for eg. would be better. So I tried this one:

   	  	Markup('timestamp', 'inline', '/\\(:timestamp:\\)/','[- 
($CurrentTime)-]');

And the only thing I get, when using the (:timestamp:) Markup in the  
Wiki is:

()

What did I wrong?

Thx for helping




Laurent Meister (kt007)

http://www.apfelwiki.de
Wir haben alle eine Antwort!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2107 bytes
Desc: not available
Url : /pipermail/pmwiki-users/attachments/20060112/29b9a4bf/attachment.bin 


More information about the pmwiki-users mailing list