protected static class ICalPropertyScribe.DateWriter extends Object
| Constructor and Description |
|---|
ICalPropertyScribe.DateWriter(ICalDate date)
Creates a new date writer object.
|
| Modifier and Type | Method and Description |
|---|---|
ICalPropertyScribe.DateWriter |
extended(boolean extended)
Sets whether to use extended format or basic.
|
ICalPropertyScribe.DateWriter |
observance(boolean observance)
Sets whether the property is within an observance or not.
|
ICalPropertyScribe.DateWriter |
tz(boolean floating,
TimeZone timezone)
Sets the timezone.
|
ICalPropertyScribe.DateWriter |
utc(boolean utc)
Sets whether to write the value in UTC or not.
|
String |
write()
Creates the date string.
|
public ICalPropertyScribe.DateWriter(ICalDate date)
date - the date to formatpublic ICalPropertyScribe.DateWriter observance(boolean observance)
observance - true if it's in an observance, false if not
(defaults to false)public ICalPropertyScribe.DateWriter utc(boolean utc)
utc - true to write in UTC, false not topublic ICalPropertyScribe.DateWriter tz(boolean floating, TimeZone timezone)
floating - true to use floating time, false not totimezone - the timezonepublic ICalPropertyScribe.DateWriter extended(boolean extended)
extended - true to use extended format, false to use basic
(defaults to "false")Copyright © 2013-2015 Michael Angstadt. All Rights Reserved.