News Module Timestamp?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

News Module Timestamp?

Post by Dr.CSS »

is there a way to timestamp the News articles like the date but 5/27/06 6:37 pm
did a forum search no luck....

    mark
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: News Module Timestamp?

Post by tsw »

Iirc news date formatting uses php date function

http://fi.php.net/manual/en/function.date.php

so it might be something like  "m/d/y g:i a"

havent tested ;)
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: News Module Timestamp?

Post by Dr.CSS »

nothing in the .php's of the news module calls for more than the date to be stamped to an article,, was hoping to stamp the time article was posted also.....

  mark
alby

Re: News Module Timestamp?

Post by alby »

tsw wrote: Iirc news date formatting uses php date function
http://fi.php.net/manual/en/function.date.php
so it might be something like "m/d/y g:i a"
From help: uses strftime and not date function
Does you try with:
dateformat="%D  %I:%M  %p"
or
dateformat="%D  %r"
parameter?

Alby
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: News Module Timestamp?

Post by Dr.CSS »

got it.... sort of, i was hoping to get the date in one place and the time in another... for now i get it on one line 6/27/06  12:30:59
oh well....

    mark
was hoping for something like the formatpostdate call  only formatposttime... actually both
Post Reply

Return to “Modules/Add-Ons”