Operators and Date Variables?
Posted: 17 December 2005 07:17 PM   [ Ignore ]  
Research Assistant
RankRankRank
Total Posts:  744
Joined  05-15-2004

Can operators be used on the date variables? For example, is there a way to determine if the date of a post is after a specific date?

 Signature 

http://www.FlavorZoom.com

Profile
 
 
Posted: 17 December 2005 09:42 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7509
Joined  08-05-2002

The data custom fields would still be in their unix timestamp form, so you would have to figure out the unix timestamp for your cut off time.  Otherwise, you would have to use PHP on Output so that you could do a PHP conditional with the date variable translated into a more human readable format.

 Signature 
Profile
 
 
Posted: 18 December 2005 03:25 AM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  16153
Joined  05-15-2004

Hm, perhaps the “Utilities section” in CP Home > System Administration could feature a “Convert from/to UNIX timestamp” tool in an upcoming version? Just a thought ...

(Yes, yes,  I’ll make the feature in the appropriate place.)

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 18 December 2005 12:26 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
RankRankRank
Total Posts:  744
Joined  05-15-2004

Excellent. Thanks for the info, Paul.

 Signature 

http://www.FlavorZoom.com

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66394 Total Logged-in Users: 27
Total Topics: 84725 Total Anonymous Users: 15
Total Replies: 454724 Total Guests: 157
Total Posts: 539449    
Members ( View Memberlist )