Thanks for your reply. I haven't implemented a DateTimePrinter yet, so i have some questions:
Do you mean i should implement a class like your TimeZoneOffset? Do I also have to implement the DateTimeParser? It seems to me a considerable amount of coding is necessary to reach the goal... (a new class wich implements all methods of DateTimePrinter, DateTimeParser) There is quite a bunch of methods - shouldn't it be possible to slightly adapt one of your classes? For instance introduce a 'ZZZZ' which prints out the necessary format? Thanks, ToM > You need to manually implement DateTimePrinter to output the time zone > format you want. You can then integrate your class within a > DateTimeFormatterBuilder. > > Stephen > > > 2008/10/31 Tobias van Treeck <[EMAIL PROTECTED]>: > > Hi Jodaers, > > > > i have a question regarding the formatting of a time. > > The PDF standard defines two times in its metadata and the time is > > according to ASN.1 definded ISO/IEC 8824. > > > > It is basically in this format: > > (D:YYYYMMDDHHmmSSOHH'mm') > > > > Whereas everything from year to second is no problem, the last part > > is > > the tricky one: > > > > O is the relationship of local time to Universal Time (UT), denoted > > by > > one of the characters +, −, or Z (see below) > > HH followed by ' is the absolute value of the offset from UT in > > hours > > (00–23) > > mm followed by ' is the absolute value of the offset from UT in > > minutes > > (00–59) > > > > For exampe: > > > > D:199812231952−08'00' > > > > My problem is, that i can not format a time with joda time (at least > > not > > easily) because of the time zone offset. > > Joda offers three choices: > > > > -0800 - if using 'Z' > > -08:00 - if using 'ZZ' > > America/Los_Angeles - if using 'ZZZ' > > > > But how can i get −08'00' ?? > > > > Thanks > > ToM > > > > > > > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge > > Build the coolest Linux based applications with Moblin SDK & win > > great prizes > > Grand prize is a trip for two to an Open Source event anywhere in > > the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Joda-interest mailing list > > Joda-interest@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/joda-interest > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Joda-interest mailing list > Joda-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/joda-interest ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest