public function setStarted($started)
{
if (is_string($started)) {
$dt = new \DateTime($started);
} elseif ($started instanceof \DateTime) {
$dt = $started;
} else {
throw new JiraException('field only accept date string or DateTime class.' . get_class($started));
}
// workround micro second
$this->started = $dt->format("Y-m-d\\TH:i:s") . '.000' . $dt->format('O');
return $this;
}