J
JRough
How do I create a javascript associative array or a JSON object of
hours, minutes, and seconds because with code?
I think my JSON object is right but how do I create the object with 60
minutes for each hour and then 60 seconds for each minute?
Or how do I fill the array so that it is assocative?
data["hours"] =
"12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00",
"20:00","21:00","22:00","23:00","24:00",
"1:00","2:00","3:00"..."11:00"]
data["minutes"] =
"00","01","02","03","04","05","06","07","08","09","10".... "60"]
data["seconds"] =
"00","01","02","03","04","05","06","07","08","10","11"...."60"]
var oTime = [12:00, 13:00, 14:00, 15:00, 16:00, 17:00, 18:00, 19:00,
20:00, 21:00, 22:00, 23:00, 24:00 ]
};
{ data:[{ 'hours': '12:00', 'minutes':
'00','02','03','04','05','06','07','08','09','seconds:
'00','01','02','03','04','05','06','07','08' }, ]
}
Many thanks,
hours, minutes, and seconds because with code?
I think my JSON object is right but how do I create the object with 60
minutes for each hour and then 60 seconds for each minute?
Or how do I fill the array so that it is assocative?
data["hours"] =
"12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00",
"20:00","21:00","22:00","23:00","24:00",
"1:00","2:00","3:00"..."11:00"]
data["minutes"] =
"00","01","02","03","04","05","06","07","08","09","10".... "60"]
data["seconds"] =
"00","01","02","03","04","05","06","07","08","10","11"...."60"]
var oTime = [12:00, 13:00, 14:00, 15:00, 16:00, 17:00, 18:00, 19:00,
20:00, 21:00, 22:00, 23:00, 24:00 ]
};
{ data:[{ 'hours': '12:00', 'minutes':
'00','02','03','04','05','06','07','08','09','seconds:
'00','01','02','03','04','05','06','07','08' }, ]
}
Many thanks,