@@ 213-222 (lines=10) @@ | ||
210 | * |
|
211 | * @return string FlexiBee Date or NULL |
|
212 | */ |
|
213 | public static function timestampToFlexiDate($timpestamp = null) |
|
214 | { |
|
215 | $flexiDate = null; |
|
216 | if (!is_null($timpestamp)) { |
|
217 | $date = new \DateTime(); |
|
218 | $date->setTimestamp($timpestamp); |
|
219 | $flexiDate = $date->format('Y-m-d'); |
|
220 | } |
|
221 | return $flexiDate; |
|
222 | } |
|
223 | ||
224 | /** |
|
225 | * Convert Timestamp to Flexi DateTime format. |
|
@@ 231-240 (lines=10) @@ | ||
228 | * |
|
229 | * @return string FlexiBee DateTime or NULL |
|
230 | */ |
|
231 | public static function timestampToFlexiDateTime($timpestamp = null) |
|
232 | { |
|
233 | $flexiDateTime = null; |
|
234 | if (!is_null($timpestamp)) { |
|
235 | $date = new \DateTime(); |
|
236 | $date->setTimestamp($timpestamp); |
|
237 | $flexiDateTime = $date->format('Y-m-dTH:i:s'); |
|
238 | } |
|
239 | return $flexiDateTime; |
|
240 | } |
|
241 | ||
242 | /** |
|
243 | * Add Data to evidence Branch |