Re: [Matplotlib-users] no leading 0 on times from DateFormatter

2012-01-30 Thread C M
On Mon, Jan 30, 2012 at 12:32 PM, Daryl Herzmann wrote:

> On Sun, Jan 29, 2012 at 10:10 PM, C M  wrote:
> > If I use the DateFormatter, like this:
> >
> > mydateformatter =
>
> >
> > I'll get dates like (note the time part):
> >
> > Nov 27 2011
> >  03:00 PM
> >
> > Instead, I'd like to lose the zero on times, like:
> >
> > Nov 27 2011
> >   3:00 PM
> >
> > Is there a way to do that?
>
> I believe if you put a '-' sign in there, it will work
>
> DateFormatter("%b%d \n %-I:%M%p", self._tz)
>
> daryl
>

Thanks, but that doesn't work.  If I use that, I get all times listed as
1:00 AM.

Che
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] no leading 0 on times from DateFormatter

2012-01-30 Thread Daryl Herzmann
On Sun, Jan 29, 2012 at 10:10 PM, C M  wrote:
> If I use the DateFormatter, like this:
>
> mydateformatter =

>
> I'll get dates like (note the time part):
>
> Nov 27 2011
>  03:00 PM
>
> Instead, I'd like to lose the zero on times, like:
>
> Nov 27 2011
>   3:00 PM
>
> Is there a way to do that?

I believe if you put a '-' sign in there, it will work

DateFormatter("%b%d \n %-I:%M%p", self._tz)

daryl

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] no leading 0 on times from DateFormatter

2012-01-29 Thread C M
If I use the DateFormatter, like this:

mydateformatter = DateFormatter("%b%d \n %I:%M%p", self._tz)

I'll get dates like (note the time part):

Nov 27 2011
 03:00 PM

Instead, I'd like to lose the zero on times, like:

Nov 27 2011
  3:00 PM

Is there a way to do that?

Thanks,
Che
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users