Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: users
time and convert_date oddities
 

Index | Next | Previous | View Flat


paul at gishnetwork

Aug 7, 2011, 8:03 PM


Views: 242
Permalink
time and convert_date oddities

I was noticing some differences of using "%X" in the below, and found an
additional head scratcher.

Test code:
[time fmt="%X"]<br />
[convert_date fmt="%X"][time fmt="%Y-%m-%d %H:%M:%S"][/convert_date]
[convert_date fmt="%X"]2011-08-07 12:34:56[/convert_date]

Produces this:
02:51:44
02:51:00 AM
12:34:00 PM

The first thing I notice is that AM/PM is added when using convert_date, and
the docs don't show %X as outputting this. The second thing I notice is that
the seconds place is always 00 for convert_date. I don't need the seconds in
this case, I'm just trying to be complete in my observations.

Are these expected, bugs, or am I misunderstanding some usage?

Paul


_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users

Subject User Time
time and convert_date oddities paul at gishnetwork Aug 7, 2011, 8:03 PM
    Re: time and convert_date oddities mike at perusion Aug 7, 2011, 9:03 PM
        Re: time and convert_date oddities paul at gishnetwork Aug 7, 2011, 9:48 PM
            Re: time and convert_date oddities mike at perusion Aug 8, 2011, 4:09 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.