You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Henri Yandell <fl...@gmail.com> on 2005/01/24 21:53:37 UTC
[lang] new token for FastDateFormat
I just noticed that there's no way to output the milliseconds since
1970 with SimpleDateFormat (or with FastDateFormat). Any interest in
having a token for FastDateFormat that lets you do that?
Hen
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[contract] german translate
Posted by "Anaximandro (Woody)" <ag...@globo.com>.
Please, anyone with german knowledge can translate the missing parts in
exceptions.xml?
Thanx
Woody
PS: David, I know you knows german (because you write this xml) but can you
do this?
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [lang] new token for FastDateFormat
Posted by Henri Yandell <fl...@gmail.com>.
Damn. I'd thought that this class would be new in 2.1. That's a pain.
Given that a formatting pattern is a String, I'm sure you can see many
reasons why solutions that involve coding bits of Java are bad :)
Hen
On Tue, 25 Jan 2005 08:06:46 +0800, Brett Porter <br...@apache.org> wrote:
> Last time I checked, Long.toString(date.getTime()) did that anyway, and in less
> characters :)
>
> Cheers,
> Brett
>
> Quoting Stephen Colebourne <sc...@btopenworld.com>:
>
> > Adding any token would be a backwards incompatible change, as it would
> > previously have been output as text.
> >
> > Why not just have a DateUtils.getMillisAsText(Date) method? (Well maybe
> > because it seems like a very odd case.....)
> >
> > Stephen
> >
> >
> > ----- Original Message -----
> > From: "Henri Yandell" <fl...@gmail.com>
> > >I just noticed that there's no way to output the milliseconds since
> > > 1970 with SimpleDateFormat (or with FastDateFormat). Any interest in
> > > having a token for FastDateFormat that lets you do that?
> > >
> > > Hen
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> > >
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [lang] new token for FastDateFormat
Posted by Brett Porter <br...@apache.org>.
Last time I checked, Long.toString(date.getTime()) did that anyway, and in less
characters :)
Cheers,
Brett
Quoting Stephen Colebourne <sc...@btopenworld.com>:
> Adding any token would be a backwards incompatible change, as it would
> previously have been output as text.
>
> Why not just have a DateUtils.getMillisAsText(Date) method? (Well maybe
> because it seems like a very odd case.....)
>
> Stephen
>
>
> ----- Original Message -----
> From: "Henri Yandell" <fl...@gmail.com>
> >I just noticed that there's no way to output the milliseconds since
> > 1970 with SimpleDateFormat (or with FastDateFormat). Any interest in
> > having a token for FastDateFormat that lets you do that?
> >
> > Hen
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [lang] new token for FastDateFormat
Posted by Stephen Colebourne <sc...@btopenworld.com>.
Adding any token would be a backwards incompatible change, as it would
previously have been output as text.
Why not just have a DateUtils.getMillisAsText(Date) method? (Well maybe
because it seems like a very odd case.....)
Stephen
----- Original Message -----
From: "Henri Yandell" <fl...@gmail.com>
>I just noticed that there's no way to output the milliseconds since
> 1970 with SimpleDateFormat (or with FastDateFormat). Any interest in
> having a token for FastDateFormat that lets you do that?
>
> Hen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org