Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Shivang13 #1
Time Compare?
I was wondering if anyone has done something like this and if so, please shed
some light on this issue.
I have an application that connects to an ERP System to authenticate users.
Every night the ERP is down for scheduled updates and so my application is also
supposed to be down. What is the best way for me to now allow anyone after a
certain time everyday. I was looking for something to compare the current time
but I have not been lucky.
If anyone does now how to solve this please help.
Thanks
Shivang13 Guest
-
Compare 2 PDF
Hi, is there any way to automate the comparison of two PDFs from outside Acrobat? e.g. I mark 2 PDFs, right-click offers me COMPARE and after... -
Using <CFIF> to compare two set of time
I am using <cfif> to compare two set of time, if there is a match then display link. I am doing something wrong because it not displaying a link... -
Formatting a time field to 24 hour time (Military time) in the Datagrid
Anyone know how to do this? -
compare date,time
Hi, I have the following 12/08/2003, 11:00 13/08/2003, 23:00 Now I would like to compare them and then calculate the how long time was... -
Time compare using milliseconds
Hello all, I have two timestamps that look like this: 08:42:38:624 08:42:39:437 I need to find out the difference. I have never worked with... -
Shivang13 #2
Time Compare?
I was wondering if anyone has done something like this and if so, please shed
some light on this issue.
I have an application that connects to an ERP System to authenticate users.
Every night the ERP is down for scheduled updates and so my application is also
supposed to be down. What is the best way for me to now allow anyone after a
certain time everyday. I was looking for something to compare the current time
but I have not been lucky.
If anyone does now how to solve this please help.
Thanks
Shivang13 Guest
-
mattw #3
Re: Time Compare?
What have you tried? Seems like something like this should work...
<cfset SystemDownTime = "CreateTime(20, 00, 00)> <!--- 10pm --->
<cfset CurrentTime = CreateTime(Hour(Now()), Minute(Now()), Second(Now()))>
<cfif CurrentTime GT SystemDownTime>
... logout code here ...
</cfif>
mattw Guest
-
rklanza #4
Re: Time Compare?
How about this?
<!--- Set the Time that is the lower bound of the window --->
<cfset SystemTime = TimeFormat(CreateTime(12, 15, 00))>
<!--- Set the Time that is the upper bound of the window --->
<cfset SystemTime2 = TimeFormat(CreateTime(12, 45, 00))>
<!--- Set the current Time --->
<cfset CurrentTime = TimeFormat(CreateTime(Hour(Now()), Minute(Now()), Second(Now())))>
<!--- Output the Time Variables and Time Stamps --->
<cfoutput>
Window Survey is Open = #SystemTime# to #SystemTime2#<br>
CurrentTime = #CurrentTime#<br>
</cfoutput>
<!--- Test to see if the respondent is here too early --->
<cfif CurrentTime LT SystemTime>
You are here too early...
<cfelse>
<!--- Test to see if the respondent is here too late --->
<cfif CurrentTime GT SystemTime2>
You are too late...
<cfelse>
You can proceed
</cfif>
</cfif>rklanza Guest



Reply With Quote

