No; I don't believe there are any NetSuite time-re...
# suitescript
e
No; I don't believe there are any NetSuite time-related fields that store any resolution other than minutes
r
Ok. Thank you!
b
if you really need to, NetSuite stores the fields with second precision
you can get at it using a formula in a search column
for example:
TO_CHAR({lastmodifieddate}, 'DS TS')
be careful of timezones. I never figured out how to get timezone information in there, or how to turn it into a unix timestamp
r
@battk this is my current formula for “Last Modified UTC” in a saved search:
Copy code
SYS_EXTRACT_UTC(TO_TIMESTAMP_TZ(TO_CHAR({lastmodifieddate},'YYYY-MM-DD HH24:MI:SS'), 'YYYY-MM-DD HH24:MI:SS TZH:TZM'))
Even though I have “SS” for seconds, the results don’t show seconds for the last modified datetime
b
You are unlucky
r
what the eff? 😂
did you define formula (datetime) or formula (text)? for the “your thing” column
b
text
r
OH wow.. thats the difference
changing to formula(text), I can get
2016-10-24 01:40:34.0
Thank you @battk