@@ 227-236 (lines=10) @@ | ||
224 | * |
|
225 | * @return string FlexiBee Date or NULL |
|
226 | */ |
|
227 | public static function timestampToFlexiDate($timpestamp = null) |
|
228 | { |
|
229 | $flexiDate = null; |
|
230 | if (!is_null($timpestamp)) { |
|
231 | $date = new \DateTime(); |
|
232 | $date->setTimestamp($timpestamp); |
|
233 | $flexiDate = $date->format('Y-m-d'); |
|
234 | } |
|
235 | return $flexiDate; |
|
236 | } |
|
237 | ||
238 | /** |
|
239 | * Convert Timestamp to Flexi DateTime format. |
|
@@ 245-254 (lines=10) @@ | ||
242 | * |
|
243 | * @return string FlexiBee DateTime or NULL |
|
244 | */ |
|
245 | public static function timestampToFlexiDateTime($timpestamp = null) |
|
246 | { |
|
247 | $flexiDateTime = null; |
|
248 | if (!is_null($timpestamp)) { |
|
249 | $date = new \DateTime(); |
|
250 | $date->setTimestamp($timpestamp); |
|
251 | $flexiDateTime = $date->format('Y-m-dTH:i:s'); |
|
252 | } |
|
253 | return $flexiDateTime; |
|
254 | } |
|
255 | ||
256 | /** |
|
257 | * Add Data to evidence Branch |