protected static class VCardPropertyScribe.DateWriter
extends java.lang.Object
Constructor and Description |
---|
DateWriter(java.util.Date date)
Creates a new date writer object.
|
Modifier and Type | Method and Description |
---|---|
VCardPropertyScribe.DateWriter |
extended(boolean extended)
Sets whether to use extended format or basic.
|
VCardPropertyScribe.DateWriter |
time(boolean hasTime)
Sets whether to output the date's time component.
|
VCardPropertyScribe.DateWriter |
utc(boolean utc)
Sets whether to format the date in UTC time, or to include a UTC
offset.
|
java.lang.String |
write()
Creates the date string.
|
public DateWriter(java.util.Date date)
date
- the date to formatpublic VCardPropertyScribe.DateWriter time(boolean hasTime)
hasTime
- true include the time, false if it's strictly a date
(defaults to "true")public VCardPropertyScribe.DateWriter extended(boolean extended)
extended
- true to use extended format, false to use basic
(defaults to "false")public VCardPropertyScribe.DateWriter utc(boolean utc)
utc
- true to format in UTC time, false to include the local
timezone's UTC offset (defaults to "true")public java.lang.String write()
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.