Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!pacbell!rtech!dosbears!drp From: drp@dosbears.UUCP (David R. Preston) Newsgroups: comp.windows.ms Subject: Re: Need autosave macro for Winword Message-ID: <367@dosbears> Date: 1 Jun 91 04:38:19 GMT References: <1991May30.063956.9027@cunixf.cc.columbia.edu> <7906@ecs.soton.ac.uk> Reply-To: drp%dosbears.uucp@ingres.com (David R. Preston) Organization: DosBears Lines: 25 >In <1991May30.063956.9027@cunixf.cc.columbia.edu> gg2@cunixf.cc.columbia.edu (Guy Gallo) writes: > >I think there is a bug here. If the time *was* between 11:56am and >11:59am, then after adding 4 mins the time will be between 12.00 and >12.03 but still be "am". It will have 12 added to it to make it 24.0x No, it won't. Are you confusing noon and midnight? >>If ap$ = "PM" And hour <> 12 Then ap$ not "PM", so don't add 12. >I think the solution is to do the conversion from 12 to 24 hour clock >*before* adding in the 4 mins. I don't think that would help much, but I'll look at it. By now you've seen my posting of the one that actually works (the first version didn't put in the non-significant zeroes). -- David R. Preston drp%dosbears.uucp@ingres.com The world hadn't ever had so many moving parts or so few labels. D. R. Preston 584 Castro St. #614 SF CA 94114 USA