Re: Adding variable hours to current time



Try this out:

t (timestamp, auto-enter modification timestamp)
n (number)

r (calculation, timestamp result)
= t + n

Now enter a 1 into n. You see that r shows t + one second.

Put 60 into n. You see that r shows t + 1 minute.

Put 3600 into n. You see that r shows t + 1 hour.

Put 36000 into n... d is now t + 10 hours.

Do you see a pattern emerging? If not, add:

h (number)
r2 (calculation, timestamp result)
= t + h * 3600

Now, go into layout mode. Specify a time format and a date format that shows
the day of the week. Try different values for h.

"Matt Wills" <Im@xxxxxxxx> wrote in message
news:O9xpg.792$0V1.701@xxxxxxxxxxx


I have a need to add various values ranging from 4 to 36 hours to the
current time, the goal being to display that new time along with its date
and day of week.The manufacturing process prompting this is a 24/7
thing, thus any of the specified durations could take it to the next
calendar day, and, in the case of 36 hours, the day after.I had hoped that
it would be as simple as adding to a timestampManipulating the numbers
equivalent to date and time is overloading my PPC (Personal Processing
Capacity). Maybe I should wait until afternoon to do this stuff?Any
guidance appreciated (custom functions welcome).Matt(FMA8, WXP/Mac)--




.



Relevant Pages

  • Re: Difference between two dates and times
    ... Are these SQL Server tables? ... Access tables have a Date/Time ... >the table with the calculation using SQL. ... will work with TIMESTAMP values as well as Date/Time values but I'm ...
    (microsoft.public.access.queries)
  • Re: Adding variable hours to current time
    ... So it IS as easy as adding to a timestamp. ... Specify a time format and a date format that shows ... and day of week.The manufacturing process prompting this is a 24/7 ... thus any of the specified durations could take it to the next ...
    (comp.databases.filemaker)
  • Re: How to avoid discontinuities when appending WMV files?
    ... > calculation, my next sample should go at 492162000. ... duplicated timestamp since they arrive too late according to ... // Alessandro Angeli ... // a dot angeli at psynet dot net ...
    (microsoft.public.windowsmedia.sdk)
  • RE: Compare two timestamps from MS access DB
    ... Can we convert timestamp to an int for further calculation? ... "dale zhang" wrote: ... > and compare it against current time? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [PHP] Data and time problem
    ... store the date as a 'unix timestamp', so you can easily compare ... simple calculation you can get the duration in minutes without ...
    (php.general)