I'm trying to make a trigger that would save all aspects of the current date and time, but I don't know how. I looked at time.os but it doesn't really make sense to me. Can someone show/tell me how to do this step by step? I'd be looking to fill the following variables:
currentDay
currentMonth
currentYear
currentHour
currentMinute
currentSeconds
amOrPm (or, adding +12 to currentHour when the time is pm - to convert to military time)
All of these would be numbers, not the word date, ideally. So January 2nd, 2001 would have the currentMonth = 1, and currentDay = 2, etc. If I had to have the day/month that's fine, I could probably figure a workaround to convert that into a number. My problem is how to pull the data into the above variables, and I don't even know where to start right now.
currentDay
currentMonth
currentYear
currentHour
currentMinute
currentSeconds
amOrPm (or, adding +12 to currentHour when the time is pm - to convert to military time)
All of these would be numbers, not the word date, ideally. So January 2nd, 2001 would have the currentMonth = 1, and currentDay = 2, etc. If I had to have the day/month that's fine, I could probably figure a workaround to convert that into a number. My problem is how to pull the data into the above variables, and I don't even know where to start right now.