<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
> Mike says...<BR>> Quoting Paul Jordan (paul@gishnetwork.com):<br>> > <br>> > I was noticing some differences of using "%X" in the below, and<br>> > found an additional head scratcher.<br>> > <br>> > Test code:<br>> > [time fmt="%X"]<br /><br>> > [convert_date fmt="%X"][time fmt="%Y-%m-%d %H:%M:%S"][/convert_date]<br>> > [convert_date fmt="%X"]2011-08-07 12:34:56[/convert_date]<br>> > <br>> > Produces this:<br>> > 02:51:44<br>> > 02:51:00 AM<br>> > 12:34:00 PM<br>> > <br>> > The first thing I notice is that AM/PM is added when using<br>> > convert_date, and the docs don't show %X as outputting this. The<br>> > second thing I notice is that the seconds place is always 00 for<br>> > convert_date. I don't need the seconds in this case, I'm just trying<br>> > to be complete in my observations.<br>> > <br>> > Are these expected, bugs, or am I misunderstanding some usage?<br>> <br>> What I don't understand is why you want to use %X. It's behavior<br>> is indeterminate as far as Interchange or Perl is concerned -- it's<br>> the OS doing what it does.<br><BR> <BR>I just thought I could use it in formatting dates and times as per:<BR> <BR><a href="http://docs.icdevgroup.org/cgi-bin/online/glossary/time.html">http://docs.icdevgroup.org/cgi-bin/online/glossary/time.html</a><BR> <BR>I had to abandon it because I needed something more reliable like %H:%M:%S.<BR> <BR>Paul<BR> <BR> <BR> <BR>                                          </div></body>
</html>