using Plots, Dates
a=["26.499215232018486" "14:51:29.572";
"15.55254740689574" "14:51:29.756";
"17.13196007509995" "14:51:29.757";
"18.65394894162646" "14:51:29.759";
"16.99354281530844" a"14:51:29.76";
"15.44265943931051" "14:51:29.762";
"14.202979799645252" "14:51:29.764";
"13.94164689332408" "14:51:29.765";
"13.965497112338758" "14:51:29.767";
"12.91434617813082" "14:51:29.768";
"11.797702046326163" "14:51:29.77";
"12.218421281575896" "14:51:29.772";
"11.907514045943785" "14:51:29.773";
"10.938190388230767" "14:51:29.775";
"10.849927020398853" "14:51:29.777";
"10.613975795278899" "14:51:29.778";
"10.115634852501415" "14:51:29.78";
"9.563886446850532" "14:51:29.782";
"8.932171005727948" "14:51:29.784";
"8.95993543921891" "14:51:29.786";
"8.799574078750084" "14:51:29.787";
"7.977678113767442" "14:51:29.789";
"7.722033743726618" "14:51:29.79";
"7.784828285660197" "14:51:29.792";
"7.748450272711257" "14:51:29.794";
"7.122765838322947" "14:51:29.807";
"6.765122519497216" "14:51:29.809";
"6.7779211077149135" "14:51:29.811";
"6.703199427053434" "14:51:29.812";
"6.422419169605139" "14:51:29.814";
"6.226020967500306" "14:51:29.816";
"6.324532646930777" "14:51:29.818";
"6.156923801015428" "14:51:29.82";
"6.047302028223021" "14:51:29.822";
"5.8787075703967675" "14:51:29.823";
"5.949343026407251" "14:51:29.825";
"5.872221052923468" "14:51:29.827";
"5.844333412350692" "14:51:29.829";
"5.820032083364488" "14:51:29.831";
"5.960252432042049" "14:51:29.832";
"6.110604478421559" "14:51:29.834";
"5.9228937883864266" "14:51:29.836";
"5.511681843845812" "14:51:29.838";
"5.391871698992283" "14:51:29.84";
"5.56577439661891" "14:51:29.841";
"5.550248941771409" "14:51:29.843";
"5.316228754019622" "14:51:29.844";
"5.182062876369177" "14:51:29.846";
"5.18351289774542" "14:51:29.848";
"5.206282049042052" "14:51:29.849";
"73.02742" "14:53:57.044";
"86.28058" "14:53:57.548";
"93.30249" "14:53:57.945";
"96.1194" "14:53:58.286";
"97.13043" "14:53:58.584";
"97.07106" "14:53:58.849";
"96.214134" "14:53:59.145";
"94.259125" "14:53:59.531";
"91.73479" "14:53:59.855";
"91.02319" "14:54:00.192";
"92.03532" "14:54:00.551";
"94.1892" "14:54:00.883";
"96.04568" "14:54:01.24";
"97.27583" "14:54:01.547";
"97.75338" "14:54:01.868";
"97.73651" "14:54:02.188";
"97.50871" "14:54:02.568";
"96.950775" "14:54:02.88";
"96.070786" "14:54:03.209";
"94.847725" "14:54:03.541";
"93.22851" "14:54:03.862";
"91.120766" "14:54:04.157";
"88.41518" "14:54:04.508";
"84.958916" "14:54:04.812";
"80.52474" "14:54:05.157";
"83.09181" "14:54:05.555";
"88.497604" "14:54:05.865";
"79.87367" "14:54:06.171";
"80.7059" "14:54:06.467";
"83.37798" "14:54:06.794";
"84.55208" "14:54:07.125";
"84.46771" "14:54:07.493";
"83.78168" "14:54:07.848";
"83.21351" "14:54:08.227";
"83.48191" "14:54:08.542";
"82.88339" "14:54:08.919";
"81.94467" "14:54:09.21";
"81.28766" "14:54:09.56";
"80.25933" "14:54:09.88";
"78.34769" "14:54:10.213";
"80.571365" "14:54:10.552";
"77.28818" "14:54:10.893";
"78.2777" "14:54:11.235";
"78.57628" "14:54:11.564";
"78.08115" "14:54:11.91";
"77.18971" "14:54:12.209";
"76.485054" "14:54:12.539";
"78.35511" "14:54:12.888";
"77.7843" "14:54:13.23";
"79.09124" "14:54:13.545";
"120.02086519777127" "14:54:13.547";
"87.23382555901625" "14:54:13.548";
"57.60968867934277" "14:54:13.549";
"33.9548217173734" "14:54:13.55";
"23.651936927136916" "14:54:13.552";
"28.05399018484942" "14:54:13.553";
"33.890138250685425" "14:54:13.554";
"36.244050672446896" "14:54:13.555";
"35.27082462029161" "14:54:13.556";
"32.075895703406346" "14:54:13.563";
"27.549637180448542" "14:54:13.565";
"22.562650741890014" "14:54:13.566";
"17.492599391254245" "14:54:13.568";
"12.769205792828402" "14:54:13.569";
"10.970373518327976" "14:54:13.571";
"13.101545048283713" "14:54:13.572";
"15.275822715649658" "14:54:13.574";
"15.84106344942932" "14:54:13.575";
"14.914592336342256" "14:54:13.576";
"13.15426617189058" "14:54:13.578";
"11.233621337968462" "14:54:13.579";
"9.622099870601996" "14:54:13.581";
"8.929089829758524" "14:54:13.582";
"9.254708185501386" "14:54:13.584";
"9.873145427463248" "14:54:13.585";
"10.341226687915723" "14:54:13.587";
"10.13993672218774" "14:54:13.588";
"9.09307792366541" "14:54:13.589";
"8.044192678840567" "14:54:13.59";
"7.61568182541545" "14:54:13.592";
"7.361236828257073" "14:54:13.593";
"7.454889419174575" "14:54:13.594";
"7.680990347292265" "14:54:13.595";
"7.688178744680857" "14:54:13.596";
"7.416913815209377" "14:54:13.598";
"6.787622596633534" "14:54:13.599";
"6.258505306082383" "14:54:13.6";
"5.95427871692019" "14:54:13.601";
"6.090535622163555" "14:54:13.602";
"6.450495602197516" "14:54:13.603";
"6.204766993981707" "14:54:13.605";
"5.6887191376032655" "14:54:13.606";
"5.385939561394959" "14:54:13.607";
"5.4163946142427735" "14:54:13.608";
"5.379109414660544" "14:54:13.609";
"5.420627167668498" "14:54:13.61";
"5.1817463721699974" "14:54:13.612";
"4.943675454637615" "14:54:13.613";
"4.845234875704597" "14:54:13.614";
"4.849045807261244" "14:54:13.615";
"46.850914" "14:54:15.97";
"52.694984" "14:54:16.472";
"56.81987" "14:54:16.979";
"59.540234" "14:54:17.524";
"59.569916" "14:54:18.042";
"55.670204" "14:54:18.532";
"59.048286" "14:54:18.96";
"54.21105" "14:54:19.397";
"55.766212" "14:54:19.85";
"54.58752" "14:54:20.316";
"50.706882" "14:54:20.743";
"49.99562" "14:54:21.175";
"50.272118" "14:54:21.632";
"48.901524" "14:54:22.085";
"47.42151" "14:54:22.535";
"44.911316" "14:54:23.093";
"43.82331" "14:54:23.585";
"43.293034" "14:54:24.085";
"40.216152" "14:54:24.554";
"39.05416" "14:54:25.007";
"37.167427" "14:54:25.483";
"34.95958" "14:54:25.987";
"33.431046" "14:54:26.483";
"31.169086" "14:54:26.997";
"28.318672" "14:54:27.496";
"26.22968" "14:54:28.011";
"24.466974" "14:54:28.585";
"22.597588" "14:54:29.101";
"20.935015" "14:54:29.576";
"17.559862" "14:54:30.078";
"10.707282" "14:54:30.721";
"9.330469" "14:54:31.251";
"7.693691" "14:54:31.865";
"7.503528" "14:54:32.427";
"5.59806" "14:54:33.178";
"5.6089206" "14:54:33.741";
"4.095738" "14:54:34.41";
"5.049217" "14:54:35.071";
"4.792138" "14:54:36.009";
"3.9050412" "14:54:36.844";
"6.551854" "14:54:37.445";
"6.5396876" "14:54:38.432";
"3.928997" "14:54:39.426";
"5.048383" "14:54:40.035";
"4.4086747" "14:54:41.002";
"3.5897787" "14:54:41.844";
"4.1762276" "14:54:42.577";
"2.8026385" "14:54:43.453";
"3.3502953" "14:54:44.093";
"2.2796144" "14:54:44.957";
"21.753600690966035" "14:54:44.958";
"20.23219456522179" "14:54:44.96";
"17.578497061320043" "14:54:44.961";
"16.10167812536832" "14:54:44.962";
"15.287545905940547" "14:54:44.963";
"11.884989886430596" "14:54:44.964";
"9.923323583431946" "14:54:44.966";
"9.915230190680978" "14:54:44.967";
"10.239861236184161" "14:54:44.968";
"9.39984673886355" "14:54:44.97";
"7.13475308855646" "14:54:44.971";
"6.967020763059508" "14:54:44.972";
"7.268046988039237" "14:54:44.973";
"6.798654634176626" "14:54:44.974";
"6.478381632437553" "14:54:44.975";
"6.198231233181829" "14:54:44.977";
"6.2579901202619475" "14:54:44.978";
"5.778927859772631" "14:54:44.979";
"6.1209066094423354" "14:54:44.98";
"5.881687666708823" "14:54:44.982";
"5.267836844673849" "14:54:44.983";
"5.014547534653412" "14:54:44.984";
"5.280159287997384" "14:54:44.985";
"4.964419172008977" "14:54:44.987";
"4.494642530497801" "14:54:44.994";
"4.523860248313952" "14:54:44.995";
"4.571356368682251" "14:54:44.997";
"4.205867184569236" "14:54:44.998";
"4.235440098621189" "14:54:45";
"3.9461275806830693" "14:54:45.001";
"3.982492833967862" "14:54:45.003";
"3.9262440665024547" "14:54:45.004";
"3.56929339415687" "14:54:45.006";
"3.6286065215812693" "14:54:45.007";
"3.5256923062286063" "14:54:45.009";
"3.215482206108975" "14:54:45.01";
"3.3121652639065444" "14:54:45.012";
"3.166169808626245" "14:54:45.013";
"3.1247009180063094" "14:54:45.015";
"2.8825151639655187" "14:54:45.016";
"2.8839146972283345" "14:54:45.018";
"2.7696057841566457" "14:54:45.019";
"2.7026232846010285" "14:54:45.021";
"2.556896168640965" "14:54:45.022";
"2.5867634283868517" "14:54:45.024";
"2.6359211246171066" "14:54:45.025";
"3.0135038641064975" "14:54:45.027";
"3.2201941078924627" "14:54:45.028";
"2.45160827601765" "14:54:45.029";
"2.181226253105567" "14:54:45.031";
"42.71606" "14:54:45.656";
"54.304455" "14:54:46.555";
"22.165562" "14:54:47.676";
"57.87572" "14:54:48.393";
"55.797794" "14:54:50.063";
"69.79438" "14:54:51.393";
"15.787255" "14:54:52.579";
"105.40192" "14:54:53.85";
"102.30041" "14:54:56.862";
"67.095436" "14:54:59.56";
"19.700068" "14:55:02.514";
"17.570517" "14:55:04.067";
"23.232357" "14:55:05.104";
"24.516844" "14:55:06.622";
"25.761795" "14:55:07.837";
"25.027925" "14:55:08.985";
"23.005068" "14:55:10.317";
"21.17099" "14:55:11.429";
"18.967398" "14:55:12.502";
"17.81275" "14:55:13.282";
"17.071012" "14:55:14.338";
"16.368814" "14:55:15.486";
"20.482412" "14:55:17.067";
"20.418335" "14:55:18.179";
"14.776248" "14:55:19.292";
"21.286222" "14:55:20.271";
"12.96673" "14:55:21.663";
"11.810612" "14:55:22.827";
"12.49811" "14:55:23.962";
"9.1051" "14:55:25.244";
"9.544827" "14:55:25.952";
"9.234246" "14:55:26.971";
"7.0311685" "14:55:28.053";
"6.3125043" "14:55:28.903";
"6.7022724" "14:55:29.732";
"5.80264" "14:55:30.809";
"5.35116" "14:55:31.764";
"5.86051" "14:55:32.462";
"5.6047306" "14:55:33.344";
"4.389505" "14:55:34.271";
"3.4503138" "14:55:35.031";
"2.9875352" "14:55:35.8";
"2.726512" "14:55:36.5";
"2.731321" "14:55:37.283";
"2.7187803" "14:55:38.17";
"2.1924343" "14:55:39.282";
"1.4248185" "14:55:40.293";
"1.340551" "14:55:41.188";
"1.5975418" "14:55:42.009";
"1.3322003" "14:55:42.999"]





function parse_dates(x)
    t=split(x,(':','.'))
    w=map(x->parse(Float64,x),t)
    Dates.Time(w...)
end
function norm_time(x)
    abs_times = x
    start_time = abs_times[1]
    norm_times = Vector(undef,length(abs_times))
    for i in 1:length(abs_times)
        norm_times[i] = abs_times[i]-start_time
    end
    norm_times
end
function parse_nanosec(x)
    w=[00,00,00,x]
    print(w)
    Dates.Time(w...)
end
loss_values = map(x->parse(Float64,x),a[:,1])
time_values = map(x->parse_dates(x),a[:,2])
norm_time_vals = norm_time(time_values)
set_dates = map(x->parse_nanosec(x),norm_time_vals)

println(norm_time_vals...)
plot(time_values[1:50],loss_values[1:50],linecolor="blue")
plot!(time_values[51:100],loss_values[51:100],linecolor="red")
plot!(time_values[101:150],loss_values[101:150],linecolor="blue")
plot!(time_values[151:150],loss_values[151:150],linecolor="red")
plot!(time_values[201:250],loss_values[201:250],linecolor="blue")
plot!(time_values[251:300],loss_values[251:300],linecolor="red")

Int64(norm_time_vals[1])

print(norm_time_vals)
