I have a process to wildcard file search the logs directory looking for the latest log for a process for the current day. The problem here is that the log files are being logged with a date/timestamp of GMT and the Now() function is working off of server time. The issue being that when I get near the end of the day such as right now, the day appears to be tommorrow in terms of the log file name but yet the Now() function still believes its today.
I searched the post about Times/Dates in TM1 but Im not quite sure if there is a way to manipulate the serial date for now to include the -7 for PST?
Thanks
Subtract/Add Hours from Serial Date
-
- Community Contributor
- Posts: 349
- Joined: Tue Aug 17, 2010 6:31 am
- OLAP Product: Planning Analytics
- Version: 2.0.5
- Excel Version: 2016
- Martin Ryan
- Site Admin
- Posts: 2003
- Joined: Sat May 10, 2008 9:08 am
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2010
- Location: Wellington, New Zealand
- Contact:
Re: Subtract/Add Hours from Serial Date
From that post
Martin
So you should just be able to subtract seven divided by 12 from the current TM1 serial time to get UST.Alan Kirk wrote: TM1 Times
TM1 times work in the same way as Excel's; just as integers represent whole days, decimal remainders represent times. 0.25 will represent 6am, 0.5 represents noon, 0.75 represents 6pm and so on.
Martin
Please do not send technical questions via private message or email. Post them in the forum where you'll probably get a faster reply, and everyone can benefit from the answers.
Jodi Ryan Family Lawyer
Jodi Ryan Family Lawyer
-
- MVP
- Posts: 3706
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Subtract/Add Hours from Serial Date
Although How Maui slowed the Sun is a favorite bedtime story at my home Tama-nui-te-rā must move exceptionally fast in your little corner of Aotearoa.Martin Ryan wrote:So you should just be able to subtract seven divided by 12 from the current TM1 serial time to get UST.
I would be more inclined to divide by 24 and then subtract to get to GMT!