How do you determine the current database time for a Notes database?

5 pts.
Tags:
.NET
Domino 6.5
Lotus Notes
I'm using C# and Domino COM Objects 1.1 to write an application that sync's data from Notes to a few other applications. My question is regarding getting just a list of documents modified since a specific date and time. It seems that the useful props and methods for this are not implemented in the COM interfaces. (These would be things like UntilTime and getModifiedDocuments.) A full sync' is easy, I just pull all the documents. But the next time around I want to do a "delta" sync and pull just the docs that have changed or been added since the last full sync'. I can use the date parameter of the Search method to do this, I think, but I need a way of determining the current database time from the source (local machine date/time may not be appropriate). How can i quesry the database or session to see what time stamp to use for a sync' operation? Thanks.
ASKED: June 4, 2008  8:15 PM
UPDATED: June 12, 2008  9:09 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Brooklynegg
    Can you share some context and code to show how you get your Domino COM database connection? Is there a session? LotusScript has a Now function that gives the System (server) date. Does COM support that function? I have never used COM and don't know what would result if you simply tired it and wrote back a result. From Notes 6.5 Help Now Function Returns the current system date and time as a date/time value. Syntax Now Return value Now returns the current system date and time as a Variant of DataType 7 (Date/Time). Usage A date/time value is an eight-byte floating-point value. The integer part represents a serial day counted from the date January 1, 100 AD. The fractional part represents the time as a fraction of a day, measured from midnight on the preceding day. You can call the function as either Now or Now().
    3,845 pointsBadges:
    report
  • Jellybean
    Once you've processed a document (collection) from Notes you could Stamp All the processed documents with a Notes Item Call notesDocumentCollection.StampAll( itemname, value ) Before you Stamp the documents you must first Save them.
    405 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following