Re: Filling in a struct timespec with the current date?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:subject :mime-version:date:references:x-mailer; bh=DGuSUU19SnTJwa6QZZcxDGOPt33hLybdOG5ZGMK7eK8=; b=bl7qGlS+CfzsQfUUmD2VnWH4jN4G+HGtASuSGp77LNn7DGcflDvcTvrzofzXS7lDnW nGPYpwql2DrEh53ZoU2qirObUG6nmCSjYYdBT4NU9m4PHOeZv+ymIvBzXl2LpJVZCcV9 komm8oezEXRc5jsaY47uWjcFo5fpzrpriyvUY= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:subject:mime-version:date:references :x-mailer; b=t8clJi69Z8SDMOiG4pA7ANRCw+EY1xMRvf8EMlI//qHbFwoI3jPbYuOXXchDIEnFGG 1uDJ79h/atN/GsRfuVHDBeZX3vP+H4h7BtJ3ovRgqdulOGvrGjlIJnKB4MvSt4IvDjMp 3cKhAww0bSj9LacoN+OGvTyRoFqKt0tCZVULg= On Jul 28, 2009, at 9:08 PM, Esteban Bodigami wrote: Well, first you need to define what you mean by 'time in kilosecs'. If you're ok with the time from Jan 1, 1970, you can use gettimeofday(). Once you have that, you just need to multiple that value by 1000. Eli _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... i want the time in kilosecs... If it's from some other date/time, you need to calculate the difference between Jan 1, 1970 and the date you want, perhaps taking the current time zone into account. There are a variety of functions available to do this kind of calculation. This email sent to site_archiver@lists.apple.com
participants (1)
-
Eli Bach