This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Stucturing data
#8
Code:
table.sort(spot, function(a, b)
  return a.price < b.price
end)

min = spot[1]
minvalue = min.price
minhour = min.time --:match('T(%d+)')

log(minvalue, minhour)

max = spot[#spot]
maxvalue = max.price
maxhour = max.time --:match('T(%d+)')

log(maxvalue, maxhour)
using this as I found on the forum and altered. How would you change so that "time" shows ad Date and Time?
Reply


Messages In This Thread
Stucturing data - by tomnord - 31.10.2022, 14:32
RE: Stucturing data - by admin - 31.10.2022, 14:36
RE: Stucturing data - by tomnord - 31.10.2022, 14:51
RE: Stucturing data - by admin - 31.10.2022, 14:56
RE: Stucturing data - by tomnord - 31.10.2022, 20:52
RE: Stucturing data - by admin - 01.11.2022, 08:48
RE: Stucturing data - by tomnord - 01.11.2022, 10:34
RE: Stucturing data - by tomnord - 01.11.2022, 13:23
RE: Stucturing data - by admin - 01.11.2022, 13:44
RE: Stucturing data - by tomnord - 01.11.2022, 14:02
RE: Stucturing data - by admin - 01.11.2022, 14:05

Forum Jump: