Xref: utzoo comp.sources.wanted:12694 comp.unix.questions:24221 comp.unix.wizards:23225 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!rex!wuarchive!mit-eddie!media-lab!snorkelwacker!spdcc!mirror!rayssd!sud509!sardella@tdw254.ed.ray.com From: sardella@tdw254.ed.ray.com Newsgroups: comp.sources.wanted,comp.unix.questions,comp.unix.wizards Subject: How to set sytem time from C Message-ID: <1923@sud509.ed.ray.com> Date: 31 Jul 90 21:10:40 GMT Sender: sardella@sud509.ed.ray.com (Norm Sardella @ Raytheon Company, Sudbury MA) Lines: 17 I am trying to set the time on a HARRIS machine. The values I have are hours, minutes, seconds, day, year, and month. I was first going to use stime() but you need to pass a long int from Jan 1 1970. I did not find any routines to convert what I have to a long int. My next try was to use a call to system() with the "date" command and parameters but the date command on the HARRIS does not support seconds. I need to find out if there is a way using systems calls or library routines to set the date with my parameters. Or even the sources to convert my parameters to that long int from 1970. ========================================================== # Norman "STORMIN" Sardella # # WORK: sardella@sud509.ed.ray.com # # LEISURE: sardella@world.std.com # # # ==========================================================