TeleFlow Forums
http://teleflow.org/phpbb/

You have: dateinfo, you need: timeinfo
http://teleflow.org/phpbb/viewtopic.php?f=7&t=157
Page 1 of 1

Author:  Awgeewhiz [ Mon Jul 19, 2004 6:55 am ]
Post subject: 

There is a date info step. <br> <br>A time info step is needed. <br> <br> <br>1) Return current time as: <br> <br> a) HH:MM:SS AM <br> <br> b) 24:MM:SS <br> <br> c) seconds since midnight (for elapsed time caclulations) <br> <br> d) return time calculated from total seconds supplied as argument <br> <br> <br>2) Return current active time zone. EST, CST, etc. <br> <br>3) Return time for requested time zone.

Author:  Chris [ Tue Jul 27, 2004 1:37 pm ]
Post subject: 

This has been added to the list as a potential future update, but has not been assigned a start date at this time. <br> <br>If and when this step is developed, an update will be posted here. <br> <br>Some of what you are looking for is currently possible in other ways, as follows: <br> <br>1a) Since the @TIME TeleFlow system variable supplies the current time in 24-hour format, you can chop the first 2 numbers from it into a separate string. Then, with a little more chopping, check if the first character is a 0. If it is, it is in the AM. Otherwise, check if the 2 characters (Eg. 13 for 1 PM) are > 12, if so, deduct 12 from it, and reconstruct your string with PM on the end. <br> <br>b) @TIME returns what you are looking for on this one, I believe. <br> <br>c) @CALL_START has the seconds since midnight as of when the last phone call starts. If you add @CALL_ELAPSE (the number of seconds since the call started) to this you get the seconds since midnight at the current time. This, unfortunately, only works during a phone call. <br> <br>d) Do you mean total seconds since midnight?

Author:  Awgeewhiz [ Fri Jul 30, 2004 4:41 pm ]
Post subject: 

d) Do you mean total seconds since midnight? <br> <br>By supplying a second count of any amount it should be able to be converted to hh:mm:ss, either elapsed or real time. <br> <br>e.g. s1 = 1st capture of total elapsed seconds since midnight. s2 = seond capture of total elapsed seconds since midnight. s3 = s2 - s1. <br>s3 conversion will give you total elapsed time (in seconds) and should also be able to be converted via step to total elapsed time in hh:mm:ss format. Any total elapsed seconds since midnight should be able to convert to current time hh:mm:ss, standard or military. Even cross midnight boundry calcs are not a problem because if s2 < s1 then s3 = ( 86400 - s1 ) + s2.

Author:  Vern [ Thu Feb 02, 2006 4:24 pm ]
Post subject: 

Other means of getting Date and Time information: <br> <br>1) Environment Variables: See the DLL example in the Samples. <br> <br>2) Database: Select Date, Time from null <br> <br>3) Internet source: Use HTTP requests. <br> <br>4) @UNIX_TIME variable (check TeleFlow Help. There may be others there too) <br> <br>We will add a few more system variable to help. But, your best and quickest bet is to read the environment variables.

Author:  Vern [ Fri Feb 03, 2006 1:21 pm ]
Post subject: 

For time after midnight the @UNIX_TIME system variable should be used. Simple seconds-since-midnight can tricky because you cannot do time calculations across the midnight boundary. So, go with this example: <br> <br> @START_TIME = @UNIX_TIME <br> ... <br> a bunch of stuff you want to calculated the time for <br> ... <br> @ELAPSED_TIME = @UNIX_TIME - @START_TIME

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/