Subject Re: SET HOURS
From Tom <IHaveNoEmail@ddress>
Date Sat, 22 Jul 2023 09:39:49 -0400
Newsgroups dbase.getting-started

On 7/22/23 8:25 AM, Ken Mayer wrote:
> On 7/22/2023 5:13 AM, Tom wrote:
>> Good morning all,
>>
>> OLH says:
>>
>> The following statements convert a DateTime value to a string using
>> DTTOC (DateTime to Character) and  extracts the date and time strings.
>> *
>> The following examples assume SET HOURS is set to 12, thereby
>> displaying the AM/PM indicator. *** <<< Note <<< ***
>> *
>> d=DATETIME()  // Yields 08/17/00 04:25:45 PM
>> d1=DTTOC(d)  //Yields 08/17/00 04:25:45 PM as a Character string
>> d2=left(d1,8)  //Yields 08/17/00 as a Character string
>> d3=right(d1,11) //Yields 04:25:45 PM as a Character string
>>
>> My question is WHERE is the current SET HOURS value stored on my
>> computer and how do I find out what it is and, more importantly, where
>> is it stored on your computer and how do I find out what it is?
>>
>> I do not see this information in my Ini file or any place to set this
>> in the "properties" form from the main menu.
>
> The value of SET HOURS is, if it is not modified, typically stored in
> your PLUS.INI file.

Dare I assume that 12 is the default?

>
> In the Command Window:
>      ? _app.iniFile
>
> That's where the PLUS.INI file is that is used by dBASE (or your
> application, although in a .exe file you would need to use something
> like: msgbox( "Ini File: " + _app.iniFile ) )
>
> Typically it will be something like:
>     C:\Users\user_name\AppData\Local\dBASE\dBASE2019\Bin\PLUS.INI

Exactly where I looked. Didn't see it but lots of entries  there.
Searched there for 'hour' with negative results.

Surprised that properties window does not include a setting for this.

>
> Where "user_name" is the windows Login name for the user.
>
> Ken
>
Thanks for your response.

Tom