How to covert a unix epoch date time value into standard format?

Has anyone been able to take a unix date time value (variable.get) and present it in a standard format, ideally one that has the month as a word so “6 November 2012”

Possibly something like so and so?

Yup, and in your other thread (http://forum.micasaverde.com/index.php/topic,12408.msg90916.html#msg90916) you’ve gotten all the additional doc pointers you’ll need to format the output with different options

Thanks OTi & Guessed

i wanted to post this particular subject in a more general area just to see if anyone had already done something like this - and that second link from OTi might help frame things better for me.

I’ll run the learning side of things here and then update the TTS post when I know more.

Some progress…

local v = os.date('%A %d %B %Y %X', luup.variable_get( "urn:micasaverde-com:serviceId:SecuritySensor1" , "LastTrip", 10), 6) luup.log("v is " .. v)

Returns in the logs - Tuesday 06 November 2012 18:12:34

Another nice reference point for the % values here → http://www.cplusplus.com/reference/clibrary/ctime/strftime/

I’ll have a play with it now for some TTS as it seems I can also add text inbetween the %s