Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
lib-ical
Commits
0177c143
Commit
0177c143
authored
Oct 11, 2015
by
Sebastian
Browse files
README.md: ttl
parent
f36e3471
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
0177c143
...
...
@@ -172,6 +172,15 @@ var cal = ical().timezone('Europe/Berlin');
```
#### ttl([_Number_ ttl])
Use this method to set your feed's time to live. Is used to fill
`REFRESH-INTERVAL`
and
`X-PUBLISHED-TTL`
in your iCal.
```
javascript
var
cal
=
ical
().
ttl
(
60
*
60
*
24
);
```
#### createEvent([_Object_ options])
Creates a new
[
Event
](
#event
)
(
[`ICalEvent`](#event
)
) and returns it. Use options to prefill the event's attributes.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment