NewsWorksSoftwareTextBioContact
background image

Formatting datetime in Max

2010-05-11

Datetime

I am currently assisting a project where we will need to use Max to interact with a sqlite3 database that is also accessed by a Ruby on Rails application. Initially I was not sure how to formate datetime properly for the created_at and updated_at fields, but a bit of googling on sprintf helped revealing some integer formatting tricks I didn’t know before. Patch below.


----------begin_max5_patcher----------
500.3ocwU1raiCBDG+r8SABkdyIhOrchyCxdYa0JRLskJaHJPzl1p9tu.1N0
a2zkDGqjKLhAXl+7CX383H3J0dtFBVB9IHJ583nHuKmin19QvZ190ULseZvZ
tVydhCSZFyv2a79mPASvfIjtAj6pExJtwuJRqyMLy5mExm90V9ZSSVwYnYnD
.NOyYxx8clOCAd3y.o1Y5hDt06iJoQxp49b+C91Rlj0k5loadcCuIEP3gf4V
lV7le.rKwMtEk93nV8xTRAz46i3XWSxERk6gDDFMEkMEisaqkX7RJ8d3.gDo
vCILEcyoT9Pnjj+a6h+GHYT5WqWopNJUvgoRV+qNE2PnjNhPQuYqPZdDbGJs
b5cHRSCv0r7PyQIVdXhQZLo2djQGQj8VE3EkPNzJPMOtlGhIjAwjjyjKjwrJ
jQTyS.kLCenrA4M4jadcG7Hde4aAR3ZNskfyoAtrPGBPpDZi6BSm0VG3bXDd
QeF4WnMTxu9Muey47+2fSq1sccmRZQdB3y8WIWaDRlQnj8ljMm8mzyhxRte7
N8UKJ2XeaZZEA3gidLdpZxmNb.MYeC0eRA0DdAdVlcE1ORrFBN+PuKTs1+EB
SP6OpmmZyJ7xbQpuT9bzgdiAaCp1hq548WR2+479JpIxonI50USzSQSoWflr
c9H9OnZBImH
-----------end_max5_patcher-----------

Up

comments powered by Disqus

 
 
 

Creative Commons License Licensed under a Creative Commons Attribution 3.0 Norway License. Web site hosted by BEK.