Example #1
0
File: TXT.php Project: elemenofi/lb
 private function TXT_Action__12()
 {
     if (substr_count($this->Retained->Value, '/') !== 2) {
         return;
     }
     $IN_Format .= "d/m/y";
     $Phrase_P1 = $this->GET__iPhrase_wo_Status(+1, true, 0);
     $Type___P1 = new ccTXT__Type($Phrase_P1->Value);
     if ($Type___P1->Has_Digits__Only__Ignore_Signs() === true && strpos($Phrase_P1->Value, ":") !== false) {
         $Phrase_P1 = $this->ADD__PREV_Phrase($Phrase_P1, $this->Retained);
         if (substr_count($Phrase_P1->Value, ':') === 1) {
             $IN_Format .= " H:i";
         } elseif (substr_count($Phrase_P1->Value, ':') === 2) {
             $IN_Format .= " H:i:s";
         }
     }
     $Timezone = new DateTimeZone('ART');
     $Value__P1 = DateTime::createFromFormat($IN_Format, $Phrase_P1->Value, $Timezone);
     if (is_a($Value__P1, "DateTime") === false) {
         return;
     }
     $Table__Name = "Ticket";
     $Schema = $this->Retained->GET___Class___FROM___Match_Action($Table__Name);
     $this->Retained->ADD___Fact___FROM___Match_Action("Datetime", $Value__P1->format("Y-m-d H:i:s"), $Phrase_P1, $Schema, $Table__Name);
     return $Schema;
 }