rfcString() public method

Format a rule according to RFC 5545
public rfcString ( boolean $include_timezone = true ) : string
$include_timezone boolean Wether to generate a rule with timezone identifier on DTSTART (and UNTIL) or not.
return string
Example #1
0
 /**
  * @dataProvider rfcStringsGenerated
  */
 public function testRfcStringsGenerated($params, $expected_str)
 {
     $rule = new RRule($params);
     $this->assertEquals($expected_str, $rule->rfcString());
 }