Re: [fpc-pascal] Parse strings like "day-1" to convert in a time stamp

2018-10-15 Thread Marcos Douglas B. Santos
On Mon, Oct 15, 2018 at 9:33 AM Michael Van Canneyt wrote: > > > On Sun, Oct 14, 2018 at 8:19 PM Michael Van Canneyt > > wrote: > >> > >> > >> > >> On Mon, 15 Oct 2018, Sven Barth via fpc-pascal wrote: > >> > >> > Marcos Douglas B. Santos schrieb am So., 14. Okt. > >> 2018, > >> > 16:15: > >> >

Re: [fpc-pascal] Parse strings like "day-1" to convert in a time stamp

2018-10-15 Thread Michael Van Canneyt
> On Sun, Oct 14, 2018 at 8:19 PM Michael Van Canneyt > wrote: >> >> >> >> On Mon, 15 Oct 2018, Sven Barth via fpc-pascal wrote: >> >> > Marcos Douglas B. Santos schrieb am So., 14. Okt. >> 2018, >> > 16:15: >> > >> >> Do you know any Pascal lib to parse strings to convert in date/time >>

Re: [fpc-pascal] Parse strings like "day-1" to convert in a time stamp

2018-10-15 Thread Marcos Douglas B. Santos
On Sun, Oct 14, 2018 at 8:19 PM Michael Van Canneyt wrote: > > > > On Mon, 15 Oct 2018, Sven Barth via fpc-pascal wrote: > > > Marcos Douglas B. Santos schrieb am So., 14. Okt. 2018, > > 16:15: > > > >> Do you know any Pascal lib to parse strings to convert in date/time values? > >> The user is

Re: [fpc-pascal] Parse strings like "day-1" to convert in a time stamp

2018-10-14 Thread Michael Van Canneyt
On Mon, 15 Oct 2018, Sven Barth via fpc-pascal wrote: Marcos Douglas B. Santos schrieb am So., 14. Okt. 2018, 16:15: Do you know any Pascal lib to parse strings to convert in date/time values? The user is supposed to type human-friendly values like: - "day"=> trunc(now) - "day-2" =>

Re: [fpc-pascal] Parse strings like "day-1" to convert in a time stamp

2018-10-14 Thread Sven Barth via fpc-pascal
Marcos Douglas B. Santos schrieb am So., 14. Okt. 2018, 16:15: > Do you know any Pascal lib to parse strings to convert in date/time values? > The user is supposed to type human-friendly values like: > - "day"=> trunc(now) > - "day-2" => trunc(now-2) > - "week" => trunc(now-7) > -

[fpc-pascal] Parse strings like "day-1" to convert in a time stamp

2018-10-14 Thread Marcos Douglas B. Santos
Do you know any Pascal lib to parse strings to convert in date/time values? The user is supposed to type human-friendly values like: - "day"=> trunc(now) - "day-2" => trunc(now-2) - "week" => trunc(now-7) - "yesterday" => trunc(now-1) - etc... But they could type even their computer date