protected static class VCardPropertyScribe.DateWriter extends Object
| Constructor and Description |
|---|
DateWriter(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.
|
String |
write()
Creates the date string.
|
public DateWriter(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")Copyright © 2012–2018 Michael Angstadt. All rights reserved.