473,804 Members | 3,502 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Time Problem

What I thought would be pretty easy has turned out not to be.

I have three variables. Actiontime is formatted as 08/11/2004 11:03PM

Actiontime
JobStreamStart (11:00:00PM)
JobStreamEnd (2:00:00AM)

If (Format(CDate(A ctionTime), "t") >= JobStreamStart AND
(Format(CDate(A ctionTime), "t") < jobstreamend Then

Do these actions

End If

Does not work. I am having a problem after midnight when it seems 4AM is
still not available for running. Does anyone have a suggestion?

Nov 21 '05 #1
10 1924

"scorpion53 061" <ad***@nospamhe rekjmsolutions. com> wrote in message
news:ON******** ******@TK2MSFTN GP14.phx.gbl...
What I thought would be pretty easy has turned out not to be.

I have three variables. Actiontime is formatted as 08/11/2004 11:03PM

Actiontime
JobStreamStart (11:00:00PM)
JobStreamEnd (2:00:00AM)

If (Format(CDate(A ctionTime), "t") >= JobStreamStart AND
(Format(CDate(A ctionTime), "t") < jobstreamend Then

Do these actions

End If

Does not work. I am having a problem after midnight when it seems 4AM is
still not available for running. Does anyone have a suggestion?


That's because 4 AM is not between 11PM and 2AM. Here's the way to go:

Private Sub testsub()
Dim ActionTime As DateTime = _
DateTime.Parse( "08/11/2004 11:03PM")
testtime(Action Time)
ActionTime = DateTime.Parse( "08/12/04 04:00AM")
testtime(Action Time)
End Sub

Private Sub testtime(ByVal ActionTime As DateTime)
Dim StartTime As DateTime = DateTime.Parse( "08/11/04 11:00PM")
Dim EndTime As DateTime = DateTime.Parse( "08/12/04 02:00AM")
If (DateTime.Compa re(ActionTime, StartTime) >= 0 AndAlso _
DateTime.Compar e(ActionTime, EndTime) < 0) OrElse _
(DateTime.Compa re(ActionTime, StartTime) < 0 OrElse _
DateTime.Compar e(ActionTime, EndTime) >= 0) Then
MessageBox.Show ("Do These Actions..")
End If
End Sub

or modifying your code:

If ((Format(CDate( ActionTime), "t") >= JobStreamStart AndAlso _
(Format(CDate(A ctionTime), "t") < jobstreamend)) OrElse _
((Format(CDate( ActionTime), "t") < JobStreamStart OrElse _
(Format(CDate(A ctionTime), "t") >= jobstreamend)) Then
MessageBox.Show ("Do These Actions..")
End If

hope that helps..
Imran.
Nov 21 '05 #2
In that case, only comparing time values wont work since its going to
compare the time values for a given date; so, 1AM for say today is not
between 11PM and 4AM of today. You'll need to use the date values -
8/12/2004 1AM is between 8/11/2004 11PM and 8/12/2004 4AM.You should use the
DateTime.Compar e function to correctly compare such values.

hope that helps..
Imran.

"scorpion53 061" <ad***@nospamhe rekjmsolutions. com> wrote in message
news:Oa******** ******@TK2MSFTN GP11.phx.gbl...
My Bad I meant to say 1AM....

If it says 1:00:00AM it still runs.

"Imran Koradia" <no****@microso ft.com> wrote in message
news:e0******** ******@TK2MSFTN GP14.phx.gbl:
"scorpion53 061" <ad***@nospamhe rekjmsolutions. com> wrote in message
news:ON******** ******@TK2MSFTN GP14.phx.gbl...
> What I thought would be pretty easy has turned out not to be.
>
> I have three variables. Actiontime is formatted as 08/11/2004 11:03PM
>
> Actiontime
> JobStreamStart (11:00:00PM)
> JobStreamEnd (2:00:00AM)
>
> If (Format(CDate(A ctionTime), "t") >= JobStreamStart AND
> (Format(CDate(A ctionTime), "t") < jobstreamend Then
>
> Do these actions
>
> End If
>
> Does not work. I am having a problem after midnight when it seems 4AM
> is
> still not available for running. Does anyone have a suggestion?


That's because 4 AM is not between 11PM and 2AM. Here's the way to go:

Private Sub testsub()
Dim ActionTime As DateTime = _
DateTime.Parse( "08/11/2004 11:03PM")
testtime(Action Time)
ActionTime = DateTime.Parse( "08/12/04 04:00AM")
testtime(Action Time)
End Sub

Private Sub testtime(ByVal ActionTime As DateTime)
Dim StartTime As DateTime = DateTime.Parse( "08/11/04 11:00PM")
Dim EndTime As DateTime = DateTime.Parse( "08/12/04 02:00AM")
If (DateTime.Compa re(ActionTime, StartTime) >= 0 AndAlso _
DateTime.Compar e(ActionTime, EndTime) < 0) OrElse _
(DateTime.Compa re(ActionTime, StartTime) < 0 OrElse _
DateTime.Compar e(ActionTime, EndTime) >= 0) Then
MessageBox.Show ("Do These Actions..")
End If
End Sub

or modifying your code:

If ((Format(CDate( ActionTime), "t") >= JobStreamStart AndAlso _
(Format(CDate(A ctionTime), "t") < jobstreamend)) OrElse _
((Format(CDate( ActionTime), "t") < JobStreamStart OrElse _
(Format(CDate(A ctionTime), "t") >= jobstreamend)) Then
MessageBox.Show ("Do These Actions..")
End If

hope that helps..
Imran.

Nov 21 '05 #3
You could compare the just the time values but you would need to test to see
if your start time (JobStreamStart ) is less than your end time for one
comparison

dim fDoActions as boolean
If JobStreamStart< =JobStreamEnd
fDoActions=(For mat(CDate(Actio nTime), "t") >= JobStreamStart AND
(Format(CDate(A ctionTime), "t") < jobstreamend
else
fDoActions= not (Format(CDate(A ctionTime), "t") < JobStreamStart OR
not (Format(CDate(A ctionTime), "t") >= jobStreamEnd Do these actions
endif
If fDoActions Then
Do these actions
Endif

"Imran Koradia" <no****@microso ft.com> wrote in message
news:uV******** ******@TK2MSFTN GP12.phx.gbl...
In that case, only comparing time values wont work since its going to
compare the time values for a given date; so, 1AM for say today is not
between 11PM and 4AM of today. You'll need to use the date values -
8/12/2004 1AM is between 8/11/2004 11PM and 8/12/2004 4AM.You should use the DateTime.Compar e function to correctly compare such values.

hope that helps..
Imran.

"scorpion53 061" <ad***@nospamhe rekjmsolutions. com> wrote in message
news:Oa******** ******@TK2MSFTN GP11.phx.gbl...
My Bad I meant to say 1AM....

If it says 1:00:00AM it still runs.

"Imran Koradia" <no****@microso ft.com> wrote in message
news:e0******** ******@TK2MSFTN GP14.phx.gbl:
"scorpion53 061" <ad***@nospamhe rekjmsolutions. com> wrote in message
news:ON******** ******@TK2MSFTN GP14.phx.gbl...
> What I thought would be pretty easy has turned out not to be.
>
> I have three variables. Actiontime is formatted as 08/11/2004 11:03PM
>
> Actiontime
> JobStreamStart (11:00:00PM)
> JobStreamEnd (2:00:00AM)
>
> If (Format(CDate(A ctionTime), "t") >= JobStreamStart AND
> (Format(CDate(A ctionTime), "t") < jobstreamend Then
>
> Do these actions
>
> End If
>
> Does not work. I am having a problem after midnight when it seems 4AM
> is
> still not available for running. Does anyone have a suggestion?

That's because 4 AM is not between 11PM and 2AM. Here's the way to go:

Private Sub testsub()
Dim ActionTime As DateTime = _
DateTime.Parse( "08/11/2004 11:03PM")
testtime(Action Time)
ActionTime = DateTime.Parse( "08/12/04 04:00AM")
testtime(Action Time)
End Sub

Private Sub testtime(ByVal ActionTime As DateTime)
Dim StartTime As DateTime = DateTime.Parse( "08/11/04 11:00PM")
Dim EndTime As DateTime = DateTime.Parse( "08/12/04 02:00AM")
If (DateTime.Compa re(ActionTime, StartTime) >= 0 AndAlso _
DateTime.Compar e(ActionTime, EndTime) < 0) OrElse _
(DateTime.Compa re(ActionTime, StartTime) < 0 OrElse _
DateTime.Compar e(ActionTime, EndTime) >= 0) Then
MessageBox.Show ("Do These Actions..")
End If
End Sub

or modifying your code:

If ((Format(CDate( ActionTime), "t") >= JobStreamStart AndAlso _
(Format(CDate(A ctionTime), "t") < jobstreamend)) OrElse _
((Format(CDate( ActionTime), "t") < JobStreamStart OrElse _
(Format(CDate(A ctionTime), "t") >= jobstreamend)) Then
MessageBox.Show ("Do These Actions..")
End If

hope that helps..
Imran.


Nov 21 '05 #4
My Bad I meant to say 1AM....

If it says 1:00:00AM it still runs.

"Imran Koradia" <no****@microso ft.com> wrote in message
news:e0******** ******@TK2MSFTN GP14.phx.gbl:
"scorpion53 061" <ad***@nospamhe rekjmsolutions. com> wrote in message
news:ON******** ******@TK2MSFTN GP14.phx.gbl...
What I thought would be pretty easy has turned out not to be.

I have three variables. Actiontime is formatted as 08/11/2004 11:03PM

Actiontime
JobStreamStart (11:00:00PM)
JobStreamEnd (2:00:00AM)

If (Format(CDate(A ctionTime), "t") >= JobStreamStart AND
(Format(CDate(A ctionTime), "t") < jobstreamend Then

Do these actions

End If

Does not work. I am having a problem after midnight when it seems 4AM
is
still not available for running. Does anyone have a suggestion?


That's because 4 AM is not between 11PM and 2AM. Here's the way to go:

Private Sub testsub()
Dim ActionTime As DateTime = _
DateTime.Parse( "08/11/2004 11:03PM")
testtime(Action Time)
ActionTime = DateTime.Parse( "08/12/04 04:00AM")
testtime(Action Time)
End Sub

Private Sub testtime(ByVal ActionTime As DateTime)
Dim StartTime As DateTime = DateTime.Parse( "08/11/04 11:00PM")
Dim EndTime As DateTime = DateTime.Parse( "08/12/04 02:00AM")
If (DateTime.Compa re(ActionTime, StartTime) >= 0 AndAlso _
DateTime.Compar e(ActionTime, EndTime) < 0) OrElse _
(DateTime.Compa re(ActionTime, StartTime) < 0 OrElse _
DateTime.Compar e(ActionTime, EndTime) >= 0) Then
MessageBox.Show ("Do These Actions..")
End If
End Sub

or modifying your code:

If ((Format(CDate( ActionTime), "t") >= JobStreamStart AndAlso _
(Format(CDate(A ctionTime), "t") < jobstreamend)) OrElse _
((Format(CDate( ActionTime), "t") < JobStreamStart OrElse _
(Format(CDate(A ctionTime), "t") >= jobstreamend)) Then
MessageBox.Show ("Do These Actions..")
End If

hope that helps..
Imran.


Nov 21 '05 #5
Scorpion,
I would use a TimeRange object.

http://www.martinfowler.com/ap2/range.html

Something like:

Public Structure TimeRange

' Store the range as TimeSpans as the comparisons are "easier"
Private ReadOnly m_start As TimeSpan
Private ReadOnly m_finish As TimeSpan

' used to handle special case of the range spanning midnight
Private ReadOnly m_midnight As Boolean

Public Sub New(ByVal start As DateTime, ByVal finish As DateTime)
m_start = start.TimeOfDay
m_finish = finish.TimeOfDa y
m_midnight = (TimeSpan.Compa re(m_start, m_finish) > 0)
End Sub

Public ReadOnly Property Start() As DateTime
Get
Return DateTime.MinVal ue.Add(m_start)
End Get
End Property

Public ReadOnly Property Finish() As DateTime
Get
Return DateTime.MinVal ue.Add(m_finish )
End Get
End Property

Public Function Contains(ByVal value As DateTime) As Boolean
Dim timeOfDay As TimeSpan = value.TimeOfDay
If m_midnight Then
Return TimeSpan.Compar e(m_start, timeOfDay) <= 0 OrElse
TimeSpan.Compar e(timeOfDay, m_finish) <= 0
Else
Return TimeSpan.Compar e(m_start, timeOfDay) <= 0 AndAlso
TimeSpan.Compar e(timeOfDay, m_finish) <= 0
End If
End Function

End Structure

Public Shared Sub Main()

Dim jobStreamRange As New TimeRange(#11:0 0:00 PM#, #2:00:00 AM#)

Dim actionTime As DateTime = #8/11/2004 11:03:00 PM#

If jobStreamRange. Contains(action Time) Then
' Do these actions
End If

End If

Hope this helps
Jay

"scorpion53 061" <ad***@nospamhe rekjmsolutions. com> wrote in message
news:ON******** ******@TK2MSFTN GP14.phx.gbl...
What I thought would be pretty easy has turned out not to be.

I have three variables. Actiontime is formatted as 08/11/2004 11:03PM

Actiontime
JobStreamStart (11:00:00PM)
JobStreamEnd (2:00:00AM)

If (Format(CDate(A ctionTime), "t") >= JobStreamStart AND
(Format(CDate(A ctionTime), "t") < jobstreamend Then

Do these actions

End If

Does not work. I am having a problem after midnight when it seems 4AM is
still not available for running. Does anyone have a suggestion?

Nov 21 '05 #6
Kelly,

Strangly enough Jay, does not shows it in is sample while we are normally
writting the same about this.

Because you are probably only working for US and English speaking Canada,
you can use the notation in those countries to create dates, however in my
opinion it is nicer to use the New Date to create dates.

You see it in the Fowler sample that is in Jays message. When you start
typing it, it shows directly as intelisence. New Date(year,month ,etc)

All was it only for people in this newsgroup who are not from those
countries, who probably as me have to check that US&EnglishCanad a system
twice.

:-)

Cor

Nov 21 '05 #7
In that case, only comparing time values wont work since its going to
compare the time values for a given date; so, 1AM for say today is not
between 11PM and 4AM of today. You'll need to use the date values -
8/12/2004 1AM is between 8/11/2004 11PM and 8/12/2004 4AM.You should use the
DateTime.Compar e function to correctly compare such values.

hope that helps..
Imran.

"scorpion53 061" <ad***@nospamhe rekjmsolutions. com> wrote in message
news:Oa******** ******@TK2MSFTN GP11.phx.gbl...
My Bad I meant to say 1AM....

If it says 1:00:00AM it still runs.

"Imran Koradia" <no****@microso ft.com> wrote in message
news:e0******** ******@TK2MSFTN GP14.phx.gbl:
"scorpion53 061" <ad***@nospamhe rekjmsolutions. com> wrote in message
news:ON******** ******@TK2MSFTN GP14.phx.gbl...
> What I thought would be pretty easy has turned out not to be.
>
> I have three variables. Actiontime is formatted as 08/11/2004 11:03PM
>
> Actiontime
> JobStreamStart (11:00:00PM)
> JobStreamEnd (2:00:00AM)
>
> If (Format(CDate(A ctionTime), "t") >= JobStreamStart AND
> (Format(CDate(A ctionTime), "t") < jobstreamend Then
>
> Do these actions
>
> End If
>
> Does not work. I am having a problem after midnight when it seems 4AM
> is
> still not available for running. Does anyone have a suggestion?


That's because 4 AM is not between 11PM and 2AM. Here's the way to go:

Private Sub testsub()
Dim ActionTime As DateTime = _
DateTime.Parse( "08/11/2004 11:03PM")
testtime(Action Time)
ActionTime = DateTime.Parse( "08/12/04 04:00AM")
testtime(Action Time)
End Sub

Private Sub testtime(ByVal ActionTime As DateTime)
Dim StartTime As DateTime = DateTime.Parse( "08/11/04 11:00PM")
Dim EndTime As DateTime = DateTime.Parse( "08/12/04 02:00AM")
If (DateTime.Compa re(ActionTime, StartTime) >= 0 AndAlso _
DateTime.Compar e(ActionTime, EndTime) < 0) OrElse _
(DateTime.Compa re(ActionTime, StartTime) < 0 OrElse _
DateTime.Compar e(ActionTime, EndTime) >= 0) Then
MessageBox.Show ("Do These Actions..")
End If
End Sub

or modifying your code:

If ((Format(CDate( ActionTime), "t") >= JobStreamStart AndAlso _
(Format(CDate(A ctionTime), "t") < jobstreamend)) OrElse _
((Format(CDate( ActionTime), "t") < JobStreamStart OrElse _
(Format(CDate(A ctionTime), "t") >= jobstreamend)) Then
MessageBox.Show ("Do These Actions..")
End If

hope that helps..
Imran.

Nov 21 '05 #8
You could compare the just the time values but you would need to test to see
if your start time (JobStreamStart ) is less than your end time for one
comparison

dim fDoActions as boolean
If JobStreamStart< =JobStreamEnd
fDoActions=(For mat(CDate(Actio nTime), "t") >= JobStreamStart AND
(Format(CDate(A ctionTime), "t") < jobstreamend
else
fDoActions= not (Format(CDate(A ctionTime), "t") < JobStreamStart OR
not (Format(CDate(A ctionTime), "t") >= jobStreamEnd Do these actions
endif
If fDoActions Then
Do these actions
Endif

"Imran Koradia" <no****@microso ft.com> wrote in message
news:uV******** ******@TK2MSFTN GP12.phx.gbl...
In that case, only comparing time values wont work since its going to
compare the time values for a given date; so, 1AM for say today is not
between 11PM and 4AM of today. You'll need to use the date values -
8/12/2004 1AM is between 8/11/2004 11PM and 8/12/2004 4AM.You should use the DateTime.Compar e function to correctly compare such values.

hope that helps..
Imran.

"scorpion53 061" <ad***@nospamhe rekjmsolutions. com> wrote in message
news:Oa******** ******@TK2MSFTN GP11.phx.gbl...
My Bad I meant to say 1AM....

If it says 1:00:00AM it still runs.

"Imran Koradia" <no****@microso ft.com> wrote in message
news:e0******** ******@TK2MSFTN GP14.phx.gbl:
"scorpion53 061" <ad***@nospamhe rekjmsolutions. com> wrote in message
news:ON******** ******@TK2MSFTN GP14.phx.gbl...
> What I thought would be pretty easy has turned out not to be.
>
> I have three variables. Actiontime is formatted as 08/11/2004 11:03PM
>
> Actiontime
> JobStreamStart (11:00:00PM)
> JobStreamEnd (2:00:00AM)
>
> If (Format(CDate(A ctionTime), "t") >= JobStreamStart AND
> (Format(CDate(A ctionTime), "t") < jobstreamend Then
>
> Do these actions
>
> End If
>
> Does not work. I am having a problem after midnight when it seems 4AM
> is
> still not available for running. Does anyone have a suggestion?

That's because 4 AM is not between 11PM and 2AM. Here's the way to go:

Private Sub testsub()
Dim ActionTime As DateTime = _
DateTime.Parse( "08/11/2004 11:03PM")
testtime(Action Time)
ActionTime = DateTime.Parse( "08/12/04 04:00AM")
testtime(Action Time)
End Sub

Private Sub testtime(ByVal ActionTime As DateTime)
Dim StartTime As DateTime = DateTime.Parse( "08/11/04 11:00PM")
Dim EndTime As DateTime = DateTime.Parse( "08/12/04 02:00AM")
If (DateTime.Compa re(ActionTime, StartTime) >= 0 AndAlso _
DateTime.Compar e(ActionTime, EndTime) < 0) OrElse _
(DateTime.Compa re(ActionTime, StartTime) < 0 OrElse _
DateTime.Compar e(ActionTime, EndTime) >= 0) Then
MessageBox.Show ("Do These Actions..")
End If
End Sub

or modifying your code:

If ((Format(CDate( ActionTime), "t") >= JobStreamStart AndAlso _
(Format(CDate(A ctionTime), "t") < jobstreamend)) OrElse _
((Format(CDate( ActionTime), "t") < JobStreamStart OrElse _
(Format(CDate(A ctionTime), "t") >= jobstreamend)) Then
MessageBox.Show ("Do These Actions..")
End If

hope that helps..
Imran.


Nov 21 '05 #9
Scorpion,
I would use a TimeRange object.

http://www.martinfowler.com/ap2/range.html

Something like:

Public Structure TimeRange

' Store the range as TimeSpans as the comparisons are "easier"
Private ReadOnly m_start As TimeSpan
Private ReadOnly m_finish As TimeSpan

' used to handle special case of the range spanning midnight
Private ReadOnly m_midnight As Boolean

Public Sub New(ByVal start As DateTime, ByVal finish As DateTime)
m_start = start.TimeOfDay
m_finish = finish.TimeOfDa y
m_midnight = (TimeSpan.Compa re(m_start, m_finish) > 0)
End Sub

Public ReadOnly Property Start() As DateTime
Get
Return DateTime.MinVal ue.Add(m_start)
End Get
End Property

Public ReadOnly Property Finish() As DateTime
Get
Return DateTime.MinVal ue.Add(m_finish )
End Get
End Property

Public Function Contains(ByVal value As DateTime) As Boolean
Dim timeOfDay As TimeSpan = value.TimeOfDay
If m_midnight Then
Return TimeSpan.Compar e(m_start, timeOfDay) <= 0 OrElse
TimeSpan.Compar e(timeOfDay, m_finish) <= 0
Else
Return TimeSpan.Compar e(m_start, timeOfDay) <= 0 AndAlso
TimeSpan.Compar e(timeOfDay, m_finish) <= 0
End If
End Function

End Structure

Public Shared Sub Main()

Dim jobStreamRange As New TimeRange(#11:0 0:00 PM#, #2:00:00 AM#)

Dim actionTime As DateTime = #8/11/2004 11:03:00 PM#

If jobStreamRange. Contains(action Time) Then
' Do these actions
End If

End If

Hope this helps
Jay

"scorpion53 061" <ad***@nospamhe rekjmsolutions. com> wrote in message
news:ON******** ******@TK2MSFTN GP14.phx.gbl...
What I thought would be pretty easy has turned out not to be.

I have three variables. Actiontime is formatted as 08/11/2004 11:03PM

Actiontime
JobStreamStart (11:00:00PM)
JobStreamEnd (2:00:00AM)

If (Format(CDate(A ctionTime), "t") >= JobStreamStart AND
(Format(CDate(A ctionTime), "t") < jobstreamend Then

Do these actions

End If

Does not work. I am having a problem after midnight when it seems 4AM is
still not available for running. Does anyone have a suggestion?

Nov 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
12956
by: David Graham | last post by:
Hi I have asked this question in alt.php as the time() function as used in setcookie belongs to php - or does it belong equally in the javascript camp - bit confused about that. Anyway, can anyone here put me straight on the following: I had a look at the time() function came across this: "To clarify, it seems this function returns the time of the computer's clock and does not do any timezone adjustments to return GMT, so you are...
10
4791
by: Bart Goeman | last post by:
Hi, I have a question about how to put redundant information in data structures, initialized at compile time. This is often necessary for performance reasons and can't be done at run time (data structures are read only) Ideally one should be able to put the redundant information there automatically so no mistakes are possible, but in a lot of case I see no way how to do it.
38
2567
by: vashwath | last post by:
Might be off topic but I don't know where to post this question.Hope some body clears my doubt. The coding standard of the project which I am working on say's not to use malloc.When I asked my lead(I have just started working) he said we should not use dynamic allocation in real time systems, the code will not run in predictable time period.Can anybody tell what does he mean?Why the execution time becomes unpredictable? Thanks
3
1485
by: Servé Lau | last post by:
I encountered a situation today where time(NULL) returned -1. This was because at the point of the call the function could not read from the bus because it was locked by another process. I got the advice to use while((t = time(NULL)) == -1) { ; } I always thought that time only returned -1 when their was no timer functionality in the hardware and that it should return a valid value for all other cases. Is that correct? Should the loop...
9
7290
by: HL | last post by:
I am using VS 2005 Beta - C# Problem: The Timer fires a few milliseconds before the actual Due-Time Let's say a timer is created in the following manner: System.Threading.Timer m_timer = null; Let's declare a constant Int32 m_TimePeriod = 10000;
7
3021
by: Shimon Sim | last post by:
I have a custom composite control I have following property
80
3483
by: Charles Law | last post by:
Hi guys I have a time critical process, running on a worker thread. By "time critical", I mean that certain parts of the process must be completed in a specific time frame. The time when the process starts is not especially important, but it must be complete within a small number of seconds. The operations I am performing do not take a long time (hundreds of milliseconds), but as each part of the process is complete, my worker thread...
3
2748
by: Satish Itty | last post by:
Hi all, I have a big problem in my hands and not sure how I can fix this. Any suggestions would be greatly appreciated. I have a .NET 3 tier app developed in VS2003 and .NET 1.1. the client is a windows application and middle tier runs on IIS. Data is passed between the client and middle tier as DataSets and custom value object classes. The problem in my hand is that the client application is deployed in different time zones and the...
5
4055
by: Omer | last post by:
hi Everyone, I am using ASP.Net 2.0. When user logins, I check the credential and then made the cookie. My hoster's server is in Arizona region and I am in Pakistan. I set cookie's expiration time as 4 hours. It works perfectly fine on my PC and many other PCs which have correct time. But, if I set date to some old date, user is simply unable to login. This makes sense as probably cookie timing is not matching. Dilemma is that many users...
4
2472
by: Ken Fine | last post by:
I've been living with a frustrating issue with VS.NET for some months now and I need to figure out what the problem is. Hopefully someone has run into the same issue and can suggest a fix. I suspect some permissions problem. I'm running VS.NET 2008 in Vista. Symptoms and observations: * ASP.NET's native ImageMap and Image controls work just fine and provide a design-time preview of images that are referenced via the ImageUrl property *...
0
9704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9571
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10561
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10302
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.