/** * Creates a new Epoch instance from an AstroDate instance * * @param AstroDate $dt AstroDate instance * @return static */ public static function dt(AstroDate $dt) { $epoch = new static($dt->toTT()->toJD()); $epoch->dt = $dt->copy(); return $epoch; }