iCal, Mac OS X 10.5: Empty "Home" and "Work" calendars may appear after installing Le
If you don't immediately migrate your iCal data in Migration Assistant after installing Leopard, and you open and close Mail or the Calendar widget before opening iCal (even if you use Migration Assistant after opening Mail or the Calendar widget), empty "Home" and "Work" calendars may appear.
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
I'm trying to make use of mkdir(char *pathname, S_IRWXU) to create the directories.
but it only creates one directory at a time. so I have to separate the tokens for "/home/blah1/blah2/blah3" as "home blah1 blah2 blah3" using delimiter "/", but it is again hectic to create such directory... (8 Replies)
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Hi
how to check input is "empty" and "numeric" in ksh?
e.g:
./myscript.ksh k
output show: invalid number input
./myscript.ksh
output show: no input
./myscript.ksh 10
output show: input is numeric (6 Replies)
DateTime::Format::ICal(3pm) User Contributed Perl Documentation DateTime::Format::ICal(3pm)NAME
DateTime::Format::ICal - Parse and format iCal datetime and duration strings
SYNOPSIS
use DateTime::Format::ICal;
my $dt = DateTime::Format::ICal->parse_datetime( '20030117T032900Z' );
my $dur = DateTime::Format::ICal->parse_duration( '+P3WT4H55S' );
# 20030117T032900Z
DateTime::Format::ICal->format_datetime($dt);
# +P3WT4H55S
DateTime::Format::ICal->format_duration($dur);
DESCRIPTION
This module understands the ICal date/time and duration formats, as defined in RFC 2445. It can be used to parse these formats in order to
create the appropriate objects.
METHODS
This class offers the following methods.
o parse_datetime($string)
Given an iCal datetime string, this method will return a new "DateTime" object.
If given an improperly formatted string, this method may die.
o parse_duration($string)
Given an iCal duration string, this method will return a new "DateTime::Duration" object.
If given an improperly formatted string, this method may die.
o parse_period($string)
Given an iCal period string, this method will return a new "DateTime::Span" object.
If given an improperly formatted string, this method may die.
o parse_recurrence( recurrence => $string, ... )
Given an iCal recurrence description, this method uses "DateTime::Event::ICal" to create a "DateTime::Set" object representing that
recurrence. Any parameters given to this method beside "recurrence" will be passed directly to the "DateTime::Event::ICal->recur"
method.
If given an improperly formatted string, this method may die.
This method accepts optional parameters "dtstart" and "dtend". These parameters must be "DateTime" objects.
The iCal spec requires that "dtstart" always be included in the recurrence set, unless this is an "exrule" statement. Since we don't
know what kind of statement is being parsed, we do not include "dtstart" in the recurrence set.
o format_datetime($datetime)
Given a "DateTime" object, this methods returns an iCal datetime string.
The iCal spec requires that datetimes be formatted either as floating times (no time zone), UTC (with a 'Z' suffix) or with a time zone
id at the beginning ('TZID=America/Chicago;...'). If this method is asked to format a "DateTime" object that has an offset-only time
zone, then the object will be converted to the UTC time zone internally before formatting.
For example, this code:
my $dt = DateTime->new( year => 1900, hour => 15, time_zone => '-0100' );
print $ical->format_datetime($dt);
will print the string "19000101T160000Z".
o format_duration($duration)
Given a "DateTime::Duration" object, this methods returns an iCal duration string.
The iCal standard does not allow for months or years in a duration, so if a duration for which "delta_months()" is not zero is given,
then this method will die.
o format_period($span)
Given a "DateTime::Span" object, this methods returns an iCal period string, using the format "DateTime/DateTime".
o format_period_with_duration($span)
Given a "DateTime::Span" object, this methods returns an iCal period string, using the format "DateTime/Duration".
o format_recurrence($arg [,$arg...] )
This method returns a list of strings containing ICal statements. In scalar context it returns a single string which may contain
embedded newlines.
The argument can be a "DateTime" list, a "DateTime::Span" list, a "DateTime::Set", or a "DateTime::SpanSet".
ICal "DATE" values are not supported. Whenever a date value is found, a "DATE-TIME" is generated.
If a recurrence has an associated "DTSTART" or "DTEND", those values must be formatted using "format_datetime()". The
"format_recurrence()" method will not do this for you.
If a "union" or "complement" of recurrences is being formatted, they are assumed to have the same "DTSTART" value.
Only "union" and "complement" operations are supported for recurrences. This is a limitation of the ICal specification.
If given a set it cannot format, this method may die.
Only "DateTime::Set::ICal" objects are formattable. A set may change class after some set operations:
$recurrence = $recurrence->union( $dt_set );
# Ok - $recurrence still is a DT::Set::ICal
$recurrence = $dt_set->union( $recurrence );
# Not Ok! - $recurrence is a DT::Set now
The only unbounded recurrences currently supported are the ones generated by the "DateTime::Event::ICal" module.
You can add ICal formatting support to a custom recurrence by using the "DateTime::Set::ICal" module:
$custom_recurrence =
DateTime::Set::ICal->from_recurrence
( recurrence =>
sub { $_[0]->truncate( to => 'month' )->add( months => 1 ) }
);
$custom_recurrence->set_ical( include => [ 'FREQ=MONTHLY' ] );
SUPPORT
Support for this module is provided via the datetime@perl.org email list. See http://lists.perl.org/ for more details.
AUTHORS
Dave Rolsky <autarch@urth.org> and Flavio Soibelmann Glock <fglock@pucrs.br>
Some of the code in this module comes from Rich Bowen's "Date::ICal" module.
COPYRIGHT
Copyright (c) 2003 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the
same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
SEE ALSO
datetime@perl.org mailing list
http://datetime.perl.org/
perl v5.10.0 2009-05-24 DateTime::Format::ICal(3pm)