Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [SMARTY] date_format question
Write a custom modifier to adjust your timestamp:

{$mytime|date_offset:"-2 hours"|date_format}


Travis Low wrote:

> Hello again.  I had suggested the possibility of adding an offset to
> the date_format modifier.  Messju suggested using setlocale(), which I
> agree with in principle, but I'm having trouble finding the definitive
> way to use setlocale() so that it works on the widest possible range
> of servers.  (See http://us2.php.net/setlocale)
>
> Could I get a yes or no on whether the offset could be added to the
> date_format modifier?  Seems to me it wouldn't hurt you if you chose
> to use setlocale(), but it would help you a lot if you didn't.
>
> If it's "no", could I please get some help generating a good drop-down
> list for input to setlocale()?
>
> Thanks!
>
> cheers,
>
> Travis
>

Report this thread to moderator Post Follow-up to this message
Old Post
Monte Ohrt
01-04-05 09:00 PM


Re: [SMARTY] date_format question
Ah, I think that would work, thanks!

cheers,

Travis

Monte Ohrt wrote:
> Write a custom modifier to adjust your timestamp:
>
> {$mytime|date_offset:"-2 hours"|date_format}
>
>
> Travis Low wrote:
> 
>
>
>
>

--
Travis Low
<mailto:travis@dawnstar.com>
<http://www.dawnstar.com>

Report this thread to moderator Post Follow-up to this message
Old Post
Travis Low
01-04-05 09:00 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Smarty Templates archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:43 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.