Skip to content

Instantly share code, notes, and snippets.

@wadouk
Created July 21, 2012 21:41
Show Gist options
  • Save wadouk/3157283 to your computer and use it in GitHub Desktop.
Save wadouk/3157283 to your computer and use it in GitHub Desktop.
Generate a sample data for OneCalendar
use OneCalendar
db.events.save({
"title" : "my great record",
"begin" : NumberLong(new String(new Date(new Date().getTime()+1000*60*60*24).getTime())),
"end" : NumberLong(new String(new Date(new Date().getTime()+3000*60*60*24).getTime())),
"location" : "anywhere i want",
"description" : "",
"tags" : [
"TAG1"
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment