Esempio n. 1
0
 /**
  * Sets the value of [ordencompradetalle_caducidad] column to a normalized version of the date/time value specified.
  *
  * @param mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as null.
  * @return Ordencompradetalle The current object (for fluent API support)
  */
 public function setOrdencompradetalleCaducidad($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->ordencompradetalle_caducidad !== null || $dt !== null) {
         $currentDateAsString = $this->ordencompradetalle_caducidad !== null && ($tmpDt = new DateTime($this->ordencompradetalle_caducidad)) ? $tmpDt->format('Y-m-d') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->ordencompradetalle_caducidad = $newDateAsString;
             $this->modifiedColumns[] = OrdencompradetallePeer::ORDENCOMPRADETALLE_CADUCIDAD;
         }
     }
     // if either are not null
     return $this;
 }
Esempio n. 2
0
 /**
  * Sets the value of [fecha] column to a normalized version of the date/time value specified.
  * 
  * @param      mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as NULL.
  * @return     Venta The current object (for fluent API support)
  */
 public function setFecha($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->fecha !== null || $dt !== null) {
         $currentDateAsString = $this->fecha !== null && ($tmpDt = new DateTime($this->fecha)) ? $tmpDt->format('Y-m-d') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->fecha = $newDateAsString;
             $this->modifiedColumns[] = VentaPeer::FECHA;
         }
     }
     // if either are not null
     return $this;
 }
 /**
  * Sets the value of [expedientehistorial_fecha] column to a normalized version of the date/time value specified.
  *
  * @param mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as null.
  * @return Expedientehistorial The current object (for fluent API support)
  */
 public function setExpedientehistorialFecha($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->expedientehistorial_fecha !== null || $dt !== null) {
         $currentDateAsString = $this->expedientehistorial_fecha !== null && ($tmpDt = new DateTime($this->expedientehistorial_fecha)) ? $tmpDt->format('Y-m-d H:i:s') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->expedientehistorial_fecha = $newDateAsString;
             $this->modifiedColumns[] = ExpedientehistorialPeer::EXPEDIENTEHISTORIAL_FECHA;
         }
     }
     // if either are not null
     return $this;
 }
Esempio n. 4
0
 /**
  * Sets the value of [created_at] column to a normalized version of the date/time value specified.
  * 
  * @param      mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as NULL.
  * @return     sfGuardRememberKey The current object (for fluent API support)
  */
 public function setCreatedAt($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->created_at !== null || $dt !== null) {
         $currentDateAsString = $this->created_at !== null && ($tmpDt = new DateTime($this->created_at)) ? $tmpDt->format('Y-m-d H:i:s') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->created_at = $newDateAsString;
             $this->modifiedColumns[] = sfGuardRememberKeyPeer::CREATED_AT;
         }
     }
     // if either are not null
     return $this;
 }
	/**
	 * Sets the value of [pause_horaire_etablissement] column to a normalized version of the date/time value specified.
	 * champ non utilise
	 * @param      mixed $v string, integer (timestamp), or DateTime value.
	 *               Empty strings are treated as NULL.
	 * @return     EdtHorairesEtablissement The current object (for fluent API support)
	 */
	public function setPauseHoraireEtablissement($v)
	{
		$dt = PropelDateTime::newInstance($v, null, 'DateTime');
		if ($this->pause_horaire_etablissement !== null || $dt !== null) {
			$currentDateAsString = ($this->pause_horaire_etablissement !== null && $tmpDt = new DateTime($this->pause_horaire_etablissement)) ? $tmpDt->format('H:i:s') : null;
			$newDateAsString = $dt ? $dt->format('H:i:s') : null;
			if ($currentDateAsString !== $newDateAsString) {
				$this->pause_horaire_etablissement = $newDateAsString;
				$this->modifiedColumns[] = EdtHorairesEtablissementPeer::PAUSE_HORAIRE_ETABLISSEMENT;
			}
		} // if either are not null

		return $this;
	} // setPauseHoraireEtablissement()
Esempio n. 6
0
 /**
  * Sets the value of [ordencompra_fechaapagar] column to a normalized version of the date/time value specified.
  *
  * @param mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as null.
  * @return Ordencompra The current object (for fluent API support)
  */
 public function setOrdencompraFechaapagar($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->ordencompra_fechaapagar !== null || $dt !== null) {
         $currentDateAsString = $this->ordencompra_fechaapagar !== null && ($tmpDt = new DateTime($this->ordencompra_fechaapagar)) ? $tmpDt->format('Y-m-d') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->ordencompra_fechaapagar = $newDateAsString;
             $this->modifiedColumns[] = OrdencompraPeer::ORDENCOMPRA_FECHAAPAGAR;
         }
     }
     // if either are not null
     return $this;
 }
Esempio n. 7
0
 /**
  * Sets the value of [consulta_hora] column to a normalized version of the date/time value specified.
  *
  * @param mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as null.
  * @return Consulta The current object (for fluent API support)
  */
 public function setConsultaHora($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->consulta_hora !== null || $dt !== null) {
         $currentDateAsString = $this->consulta_hora !== null && ($tmpDt = new DateTime($this->consulta_hora)) ? $tmpDt->format('H:i:s') : null;
         $newDateAsString = $dt ? $dt->format('H:i:s') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->consulta_hora = $newDateAsString;
             $this->modifiedColumns[] = ConsultaPeer::CONSULTA_HORA;
         }
     }
     // if either are not null
     return $this;
 }
Esempio n. 8
0
 /**
  * Sets the value of [fin] column to a normalized version of the date/time value specified.
  *
  * @param mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as null.
  * @return Registrosala The current object (for fluent API support)
  */
 public function setFin($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->fin !== null || $dt !== null) {
         $currentDateAsString = $this->fin !== null && ($tmpDt = new DateTime($this->fin)) ? $tmpDt->format('Y-m-d H:i:s') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->fin = $newDateAsString;
             $this->modifiedColumns[] = RegistrosalaPeer::FIN;
         }
     }
     // if either are not null
     return $this;
 }
Esempio n. 9
0
 /**
  * @expectedException PropelException
  */
 public function testNewInstanceInvalidValue()
 {
     $dt = PropelDateTime::newInstance('some string');
 }
Esempio n. 10
0
 /**
  * Sets the value of [cargoadmision_fecha] column to a normalized version of the date/time value specified.
  *
  * @param mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as null.
  * @return Cargoadmision The current object (for fluent API support)
  */
 public function setCargoadmisionFecha($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->cargoadmision_fecha !== null || $dt !== null) {
         $currentDateAsString = $this->cargoadmision_fecha !== null && ($tmpDt = new DateTime($this->cargoadmision_fecha)) ? $tmpDt->format('Y-m-d H:i:s') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->cargoadmision_fecha = $newDateAsString;
             $this->modifiedColumns[] = CargoadmisionPeer::CARGOADMISION_FECHA;
         }
     }
     // if either are not null
     return $this;
 }
Esempio n. 11
0
 /**
  * Sets the value of [last_login] column to a normalized version of the date/time value specified.
  * 
  * @param      mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as NULL.
  * @return     sfGuardUser The current object (for fluent API support)
  */
 public function setLastLogin($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->last_login !== null || $dt !== null) {
         $currentDateAsString = $this->last_login !== null && ($tmpDt = new DateTime($this->last_login)) ? $tmpDt->format('Y-m-d H:i:s') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->last_login = $newDateAsString;
             $this->modifiedColumns[] = sfGuardUserPeer::LAST_LOGIN;
         }
     }
     // if either are not null
     return $this;
 }
Esempio n. 12
0
 /**
  * Sets the value of [empleado_iniciocontrato] column to a normalized version of the date/time value specified.
  *
  * @param mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as null.
  * @return Empleado The current object (for fluent API support)
  */
 public function setEmpleadoIniciocontrato($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->empleado_iniciocontrato !== null || $dt !== null) {
         $currentDateAsString = $this->empleado_iniciocontrato !== null && ($tmpDt = new DateTime($this->empleado_iniciocontrato)) ? $tmpDt->format('Y-m-d') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->empleado_iniciocontrato = $newDateAsString;
             $this->modifiedColumns[] = EmpleadoPeer::EMPLEADO_INICIOCONTRATO;
         }
     }
     // if either are not null
     return $this;
 }
Esempio n. 13
0
 /**
  * Sets the value of [bancotransaccion_fecha] column to a normalized version of the date/time value specified.
  *
  * @param mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as null.
  * @return Bancotransaccion The current object (for fluent API support)
  */
 public function setBancotransaccionFecha($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->bancotransaccion_fecha !== null || $dt !== null) {
         $currentDateAsString = $this->bancotransaccion_fecha !== null && ($tmpDt = new DateTime($this->bancotransaccion_fecha)) ? $tmpDt->format('Y-m-d H:i:s') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->bancotransaccion_fecha = $newDateAsString;
             $this->modifiedColumns[] = BancotransaccionPeer::BANCOTRANSACCION_FECHA;
         }
     }
     // if either are not null
     return $this;
 }
	/**
	 * Sets the value of [date_visibilite_eleve] column to a normalized version of the date/time value specified.
	 * Timestamp précisant quand les devoirs sont portés à la conaissance des élèves
	 * @param      mixed $v string, integer (timestamp), or DateTime value.
	 *               Empty strings are treated as NULL.
	 * @return     CahierTexteTravailAFaire The current object (for fluent API support)
	 */
	public function setDateVisibiliteEleve($v)
	{
		$dt = PropelDateTime::newInstance($v, null, 'DateTime');
		if ($this->date_visibilite_eleve !== null || $dt !== null) {
			$currentDateAsString = ($this->date_visibilite_eleve !== null && $tmpDt = new DateTime($this->date_visibilite_eleve)) ? $tmpDt->format('Y-m-d H:i:s') : null;
			$newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
			if ($currentDateAsString !== $newDateAsString) {
				$this->date_visibilite_eleve = $newDateAsString;
				$this->modifiedColumns[] = CahierTexteTravailAFairePeer::DATE_VISIBILITE_ELEVE;
			}
		} // if either are not null

		return $this;
	} // setDateVisibiliteEleve()
 /**
  * Sets the value of [tanggal] column to a normalized version of the date/time value specified.
  *
  * @param mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as null.
  * @return BarangMasuk The current object (for fluent API support)
  */
 public function setTanggal($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->tanggal !== null || $dt !== null) {
         $currentDateAsString = $this->tanggal !== null && ($tmpDt = new DateTime($this->tanggal)) ? $tmpDt->format('Y-m-d H:i:s') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->tanggal = $newDateAsString;
             $this->modifiedColumns[] = BarangMasukPeer::TANGGAL;
         }
     }
     // if either are not null
     return $this;
 }
Esempio n. 16
0
 /**
  * Sets the value of [admision_pagadaen] column to a normalized version of the date/time value specified.
  *
  * @param mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as null.
  * @return Admision The current object (for fluent API support)
  */
 public function setAdmisionPagadaen($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->admision_pagadaen !== null || $dt !== null) {
         $currentDateAsString = $this->admision_pagadaen !== null && ($tmpDt = new DateTime($this->admision_pagadaen)) ? $tmpDt->format('Y-m-d H:i:s') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->admision_pagadaen = $newDateAsString;
             $this->modifiedColumns[] = AdmisionPeer::ADMISION_PAGADAEN;
         }
     }
     // if either are not null
     return $this;
 }
Esempio n. 17
0
 /**
  * Sets the value of [last_updated] column to a normalized version of the date/time value specified.
  * 
  * @param      mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as NULL.
  * @return     Session The current object (for fluent API support)
  */
 public function setLastUpdated($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->last_updated !== null || $dt !== null) {
         $currentDateAsString = $this->last_updated !== null && ($tmpDt = new DateTime($this->last_updated)) ? $tmpDt->format('Y-m-d H:i:s') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->last_updated = $newDateAsString;
             $this->modifiedColumns[] = SessionPeer::LAST_UPDATED;
         }
     }
     // if either are not null
     return $this;
 }
Esempio n. 18
0
 /**
  * Sets the value of [action_time] column to a normalized version of the date/time value specified.
  * 
  * @param      mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as NULL.
  * @return     Action The current object (for fluent API support)
  */
 public function setActionTime($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->action_time !== null || $dt !== null) {
         $currentDateAsString = $this->action_time !== null && ($tmpDt = new DateTime($this->action_time)) ? $tmpDt->format('Y-m-d H:i:s') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->action_time = $newDateAsString;
             $this->modifiedColumns[] = ActionPeer::ACTION_TIME;
         }
     }
     // if either are not null
     return $this;
 }
Esempio n. 19
0
 public static function isTimestamp($value)
 {
     return parent::isTimestamp($value);
 }
Esempio n. 20
0
 /**
  * Sets the value of [time_booking] column to a normalized version of the date/time value specified.
  * 
  * @param mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as null.
  * @return PlayerCourt The current object (for fluent API support)
  */
 public function setTimeBooking($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->time_booking !== null || $dt !== null) {
         $currentDateAsString = $this->time_booking !== null && ($tmpDt = new DateTime($this->time_booking)) ? $tmpDt->format('H:i:s') : null;
         $newDateAsString = $dt ? $dt->format('H:i:s') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->time_booking = $newDateAsString;
             $this->modifiedColumns[] = PlayerCourtPeer::TIME_BOOKING;
         }
     }
     // if either are not null
     return $this;
 }
Esempio n. 21
0
 /**
  * Sets the value of [expires] column to a normalized version of the date/time value specified.
  *
  * @param mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as null.
  * @return UserProduct The current object (for fluent API support)
  */
 public function setExpires($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->expires !== null || $dt !== null) {
         $currentDateAsString = $this->expires !== null && ($tmpDt = new DateTime($this->expires)) ? $tmpDt->format('Y-m-d H:i:s') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->expires = $newDateAsString;
             $this->modifiedColumns[] = UserProductPeer::EXPIRES;
         }
     }
     // if either are not null
     return $this;
 }
Esempio n. 22
0
	/**
	 * Sets the value of [date_sortie] column to a normalized version of the date/time value specified.
	 * Timestamp de sortie de l'élève de l'établissement (fin d'inscription)
	 * @param      mixed $v string, integer (timestamp), or DateTime value.
	 *               Empty strings are treated as NULL.
	 * @return     Eleve The current object (for fluent API support)
	 */
	public function setDateSortie($v)
	{
		$dt = PropelDateTime::newInstance($v, null, 'DateTime');
		if ($this->date_sortie !== null || $dt !== null) {
			$currentDateAsString = ($this->date_sortie !== null && $tmpDt = new DateTime($this->date_sortie)) ? $tmpDt->format('Y-m-d H:i:s') : null;
			$newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
			if ($currentDateAsString !== $newDateAsString) {
				$this->date_sortie = $newDateAsString;
				$this->modifiedColumns[] = ElevePeer::DATE_SORTIE;
			}
		} // if either are not null

		return $this;
	} // setDateSortie()
Esempio n. 23
0
 /**
  * Sets the value of [published_at] column to a normalized version of the date/time value specified.
  *
  * @param mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as null.
  * @return Chart The current object (for fluent API support)
  */
 public function setPublishedAt($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->published_at !== null || $dt !== null) {
         $currentDateAsString = $this->published_at !== null && ($tmpDt = new DateTime($this->published_at)) ? $tmpDt->format('Y-m-d H:i:s') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->published_at = $newDateAsString;
             $this->modifiedColumns[] = ChartPeer::PUBLISHED_AT;
         }
     }
     // if either are not null
     return $this;
 }
Esempio n. 24
0
	/**
	 * Sets the value of [date_fin] column to a normalized version of the date/time value specified.
	 * date de fin de la periode (utilisé notamment pour le décompte des absences)
	 * @param      mixed $v string, integer (timestamp), or DateTime value.
	 *               Empty strings are treated as NULL.
	 * @return     PeriodeNote The current object (for fluent API support)
	 */
	public function setDateFin($v)
	{
		$dt = PropelDateTime::newInstance($v, null, 'DateTime');
		if ($this->date_fin !== null || $dt !== null) {
			$currentDateAsString = ($this->date_fin !== null && $tmpDt = new DateTime($this->date_fin)) ? $tmpDt->format('Y-m-d H:i:s') : null;
			$newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
			if ($currentDateAsString !== $newDateAsString) {
				$this->date_fin = $newDateAsString;
				$this->modifiedColumns[] = PeriodeNotePeer::DATE_FIN;
			}
		} // if either are not null

		return $this;
	} // setDateFin()
Esempio n. 25
0
 /**
  * Sets the value of [paciente_fechanacimiento] column to a normalized version of the date/time value specified.
  *
  * @param mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as null.
  * @return Paciente The current object (for fluent API support)
  */
 public function setPacienteFechanacimiento($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->paciente_fechanacimiento !== null || $dt !== null) {
         $currentDateAsString = $this->paciente_fechanacimiento !== null && ($tmpDt = new DateTime($this->paciente_fechanacimiento)) ? $tmpDt->format('Y-m-d') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->paciente_fechanacimiento = $newDateAsString;
             $this->modifiedColumns[] = PacientePeer::PACIENTE_FECHANACIMIENTO;
         }
     }
     // if either are not null
     return $this;
 }
Esempio n. 26
0
 /**
  * Sets the value of [consultaanticipo_fecha] column to a normalized version of the date/time value specified.
  *
  * @param mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as null.
  * @return Consultaanticipo The current object (for fluent API support)
  */
 public function setConsultaanticipoFecha($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->consultaanticipo_fecha !== null || $dt !== null) {
         $currentDateAsString = $this->consultaanticipo_fecha !== null && ($tmpDt = new DateTime($this->consultaanticipo_fecha)) ? $tmpDt->format('Y-m-d H:i:s') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->consultaanticipo_fecha = $newDateAsString;
             $this->modifiedColumns[] = ConsultaanticipoPeer::CONSULTAANTICIPO_FECHA;
         }
     }
     // if either are not null
     return $this;
 }
 /**
  * Sets the value of [updated_at] column to a normalized version of the date/time value specified.
  * 
  * @param      mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as NULL.
  * @return     afWidgetHelpSettings The current object (for fluent API support)
  */
 public function setUpdatedAt($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->updated_at !== null || $dt !== null) {
         $currentDateAsString = $this->updated_at !== null && ($tmpDt = new DateTime($this->updated_at)) ? $tmpDt->format('Y-m-d H:i:s') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->updated_at = $newDateAsString;
             $this->modifiedColumns[] = afWidgetHelpSettingsPeer::UPDATED_AT;
         }
     }
     // if either are not null
     return $this;
 }
Esempio n. 28
0
 /**
  * Sets the value of [lad_tt_off] column to a normalized version of the date/time value specified.
  * 
  * @param      mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as NULL.
  * @return     Horarios The current object (for fluent API support)
  */
 public function setLadTtOff($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->lad_tt_off !== null || $dt !== null) {
         $currentDateAsString = $this->lad_tt_off !== null && ($tmpDt = new DateTime($this->lad_tt_off)) ? $tmpDt->format('H:i:s') : null;
         $newDateAsString = $dt ? $dt->format('H:i:s') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->lad_tt_off = $newDateAsString;
             $this->modifiedColumns[] = HorariosPeer::LAD_TT_OFF;
         }
     }
     // if either are not null
     return $this;
 }
Esempio n. 29
0
 /**
  * Formats a temporal value brefore binding, given a ColumnMap object.
  *
  * @param     mixed    $value  The temporal value
  * @param     mixed    $type PropelColumnTypes constant, or ColumnMap object
  *
  * @return    string  The formatted temporal value
  */
 public function formatTemporalValue($value, $type)
 {
     /** @var $dt PropelDateTime */
     if ($dt = PropelDateTime::newInstance($value)) {
         if ($type instanceof ColumnMap) {
             $type = $type->getType();
         }
         switch ($type) {
             case PropelColumnTypes::TIMESTAMP:
             case PropelColumnTypes::BU_TIMESTAMP:
                 $value = $dt->format($this->getTimestampFormatter());
                 break;
             case PropelColumnTypes::DATE:
             case PropelColumnTypes::BU_DATE:
                 $value = $dt->format($this->getDateFormatter());
                 break;
             case PropelColumnTypes::TIME:
                 $value = $dt->format($this->getTimeFormatter());
                 break;
         }
     }
     return $value;
 }
Esempio n. 30
0
 /**
  * Sets the value of [date] column to a normalized version of the date/time value specified.
  *
  * @param mixed $v string, integer (timestamp), or DateTime value.
  *               Empty strings are treated as null.
  * @return Holiday The current object (for fluent API support)
  */
 public function setDate($v)
 {
     $dt = PropelDateTime::newInstance($v, null, 'DateTime');
     if ($this->date !== null || $dt !== null) {
         $currentDateAsString = $this->date !== null && ($tmpDt = new DateTime($this->date)) ? $tmpDt->format('Y-m-d') : null;
         $newDateAsString = $dt ? $dt->format('Y-m-d') : null;
         if ($currentDateAsString !== $newDateAsString) {
             $this->date = $newDateAsString;
             $this->modifiedColumns[] = HolidayPeer::DATE;
         }
     }
     // if either are not null
     return $this;
 }