|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
time expressionsHow do I say 1 hour in VB.Net.
I'm trying to find out if now - starttime > 1 hour If Now().Subtract(starttime).ToString > ???????? Then cj.
If now.addhours(-1).ToTicks > Starttime.ToTicks then I hope this helps, Cor Show quoteHide quote "cj" <cj@nospam.nospam> schreef in bericht news:ePU%23ygRSGHA.5728@tk2msftngp13.phx.gbl... > How do I say 1 hour in VB.Net. > > I'm trying to find out if now - starttime > 1 hour > > If Now().Subtract(starttime).ToString > ???????? Then Thanks!
Cor Ligthert [MVP] wrote: Show quoteHide quote > cj. > > If now.addhours(-1).ToTicks > Starttime.ToTicks then > > I hope this helps, > > Cor > > "cj" <cj@nospam.nospam> schreef in bericht > news:ePU%23ygRSGHA.5728@tk2msftngp13.phx.gbl... >> How do I say 1 hour in VB.Net. >> >> I'm trying to find out if now - starttime > 1 hour >> >> If Now().Subtract(starttime).ToString > ???????? Then > > dim ts as TimeSpan = DateTime.Now.Subtract(startTime)
if (ts.Hours >0) then Trace.WriteLine("More than an hour has passed since " & startTime.ToString()) end if hth, Alan. Thanks!
AlanT wrote: Show quoteHide quote > > dim ts as TimeSpan = DateTime.Now.Subtract(startTime) > > if (ts.Hours >0) then > Trace.WriteLine("More than an hour has passed since " & > startTime.ToString()) > end if > > > hth, > Alan. >
Text on Image Resolution
Reading Stream After RedirectStandardOutput=True Blocks I can't find the error here.... Stored procedure handling 1 parent record and multiple child recor Confusion on Protected Overrides checking for EOF Loop through columns of all datarows in a dataset my form cannot from from network DataGridView validation to underlying DataSource Hide some columns of listview |
|||||||||||||||||||||||