- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Are time fields (e.g., TimeCreate d) stored as UTC?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-14-2009 12:21 AM
An example of the value for TimeCreated (or TimeUpdated) is 17.97087. Does that correspond to 17:58 UTC? If not, how do I convert it to local (or UTC) time?
Thank you,
Mike
Re: Are time fields (e.g., TimeCreate d) stored as UTC?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-14-2009 11:59 AM
Welcome to the forums!
The value is a string field representing the time on your computer, which I suspect is local time. So 17.97087 is 17:58 local time.
There might be a better way to do this, but the formula I used to convert this field to something recognizable is:
If (Truncate(((ToNumber({TIMEFIELD})-Truncate(ToNumbe
r({TIMEFIELD}))))*60))<10 then ToText(Truncate(ToNumber({TIMEFIELD})),0)+":0"+ToT ext(Truncate(((ToNumber({TIMEFIELD})-Truncate(ToNu mber({TIMEFIELD}))))*60),0) Else ToText(Truncate(ToNumber({TIMEFIELD})),0)+":"+ToTe xt(Truncate(((ToNumber({TIMEFIELD})-Truncate(ToNum ber({TIMEFIELD}))))*60),0)
I didn't bother converting to a 12-hour clock from 24, but you could if you wanted.
Re: Are time fields (e.g., TimeCreate d) stored as UTC?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-14-2009 12:05 PM
Re: Are time fields (e.g., TimeCreate d) stored as UTC?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-16-2009 12:13 AM
There are other ways...
this formula converts a time stamp from mas90 to clock time
time(tonumber({SO_SalesOrderHeader.TimeCreated})/2
FORMULA = CTime ({AR_CreditCardSettlementWrk.Time})
Founder, Rings & Things, Spokane, WA USA
Re: Are time fields (e.g., TimeCreate d) stored as UTC?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-16-2009 08:21 AM
Re: Are time fields (e.g., TimeCreate d) stored as UTC?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-16-2009 01:46 PM
Unfortunately these time stamps from MAS 90 are each computer's local time. So a user in eastern time saves an order the same time as someone in pacific time and the time stamps are 3 hours apart.
For MAS 200 it is the server's time.
Dawn
Re: Are time fields (e.g., TimeCreate d) stored as UTC?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-30-2010 12:59 PM
Can this formula, time(tonumber({SO_SalesOrderHeader.TimeCreated})/24)
be converted to SQL or do you a SQL equivalent?


