Re: RE : [fpc-pascal] Timezone information in a dataset datetime field?- updated

2011-07-25 Thread waldo kitty
On 7/25/2011 15:53, José Mejuto wrote: Hello FPC-Pascal, Monday, July 25, 2011, 6:23:21 PM, you wrote: JH> And even if dates are correctly stored in UTC it is not easy to reliably JH> get back the "local time". Daylight savings were changed in the past JH> (and may also change in the future)

[fpc-pascal] Re: Library for network calculation

2011-07-25 Thread Paul Nicholls
"Jorge Aldo G. de F. Junior" wrote in message news:CAAHHabS9aUe9gwyNjkve-XVXsRyf2UPsArh6=fsdpgokugj...@mail.gmail.com... > Some time ago someone asked for a library able to do network calculations. > > Here is something that might evolve into such library : > > Function NetMaskToHostMask(NetMas

[fpc-pascal] Re: Library for network calculation

2011-07-25 Thread Jorge Aldo G. de F. Junior
Some time ago someone asked for a library able to do network calculations. Here is something that might evolve into such library : Uses Classes, SysUtils, StrUtils; Type TNetworkIP = Record Case Mode : Boolean Of True : (IP1, IP2, IP3, IP4 : Byte);

Re: RE : [fpc-pascal] Timezone information in a dataset datetime field?- updated

2011-07-25 Thread Mark Morgan Lloyd
DaWorm wrote: On Mon, Jul 25, 2011 at 11:53 AM, Mark Morgan Lloyd wrote: Link below looks directly relevant: it contains polygon data for each timezone, subject to knowing the current location. http://efele.net/maps/tz/world/ I've confirmed that files are accessible (i.e. not subscription-onl

Re[2]: RE : [fpc-pascal] Timezone information in a dataset datetime field?- updated

2011-07-25 Thread José Mejuto
Hello FPC-Pascal, Monday, July 25, 2011, 6:23:21 PM, you wrote: JH> And even if dates are correctly stored in UTC it is not easy to reliably JH> get back the "local time". Daylight savings were changed in the past JH> (and may also change in the future). If you have a date/time of JH> 2001-05-0

Re[2]: RE : [fpc-pascal] Timezone information in a dataset datetime field?- updated

2011-07-25 Thread José Mejuto
Hello FPC-Pascal, Monday, July 25, 2011, 12:54:13 PM, you wrote: RO> Correct. Would you happen to have some cross platform code readily RO> available that spits out either: RO> 1. Offset from UTC for a certain (historical or future) date/time RO> 2. Timezone abbreviation suitable for inclusion in

Re: RE : [fpc-pascal] Timezone information in a dataset datetime field?- updated

2011-07-25 Thread DaWorm
On Mon, Jul 25, 2011 at 11:53 AM, Mark Morgan Lloyd wrote: > Link below looks directly relevant: it contains polygon data for each > timezone, subject to knowing the current location. > > http://efele.net/maps/tz/world/ > > I've confirmed that files are accessible (i.e. not subscription-only) but

RE : [fpc-pascal] XML_XSD export was: Timezone information in a datasetdatetimefield?

2011-07-25 Thread Ludo Brands
> > In the meantime, I've finished the ADO.Net export functionality. > > I'd appreciate further test reports! > I'm getting an "http://www.w3.org/2001/XMLSchema:element not taken into account in this context" (freely translated from French) error. Fixed this by adding between and One other c

Re: RE : [fpc-pascal] Timezone information in a dataset datetime field?- updated

2011-07-25 Thread Reinier Olislagers
On 25-7-2011 18:23, Jürgen Hestermann wrote: > Reinier Olislagers schrieb: ... >> If so, I'll try and get timezone description from the OS... > > Timezone information is not enough to get reliable dates. Dependend on > where dates origin from they can be wrong (wrong clock on computer, > wrong tim

Re: RE : [fpc-pascal] Timezone information in a dataset datetime field?- updated

2011-07-25 Thread Jürgen Hestermann
Reinier Olislagers schrieb: > I realize having a local timezone option will result in a hornet's nest > of adjustments for Daylight Saving Time etc... I'll try and check to see > if it is possible to specify the timezone description instead of the > offset in the export datetime field. > If so,

RE : [fpc-pascal] XML_XSD export was: Timezone information in a datasetdatetimefield?

2011-07-25 Thread Ludo Brands
> > After these changes, import in access 2002 and 2010 is ok. Multiple > > field indices is working also? > > It should be as it now takes the fields property (a semicolon > delimited list of fields according to the help) & replaces ; > with a space, which is the format that appears in my test

[fpc-pascal] XML_XSD export was: Timezone information in a dataset datetimefield?

2011-07-25 Thread Reinier Olislagers
On 25-7-2011 17:37, Ludo Brands wrote: > >> I did see one improvement in your 2010 export: descending >> indexes are supported as opposed to Access XP I'll tweak >> the format to spit that out & see if Access XP can read it... Still to do... > Tested the creation of index info from MySQL S

Re: RE : [fpc-pascal] Timezone information in a dataset datetime field?- updated

2011-07-25 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: If GPS could be persuaded to cough up basic information about the operative timezone in a standardised form (i.e. "you're in a country that uses WET") it would make things much easier. Or failing that if somebody had a comprehensive translation between lat/long and bas

RE : RE : RE : [fpc-pascal] Timezone information in adataset datetimefield?

2011-07-25 Thread Ludo Brands
> I did see one improvement in your 2010 export: descending > indexes are supported as opposed to Access XP I'll tweak > the format to spit that out & see if Access XP can read it... > > Tested the creation of index info from MySQL SQLQuery and found some issues. Line 222: if IsPu

Re: [fpc-pascal] Download EmbWeb sources

2011-07-25 Thread Lee Jenkins
On 7/25/2011 11:17 AM, Marco van de Voort wrote: In our previous episode, Lee Jenkins said: M:\lazarus_current\lazarus\fpc\2.5.1\bin\i386-win32>fppkg install embweb The FPC Package tool encountered the following error: [embweb] Package fcl-web is not available M:\lazarus_current\lazarus\fpc\2.

Re: [fpc-pascal] Download EmbWeb sources

2011-07-25 Thread Marco van de Voort
In our previous episode, Lee Jenkins said: > M:\lazarus_current\lazarus\fpc\2.5.1\bin\i386-win32>fppkg install embweb > The FPC Package tool encountered the following error: > [embweb] Package fcl-web is not available > > M:\lazarus_current\lazarus\fpc\2.5.1\bin\i386-win32>fppkg list > Name

Re: RE : RE : [fpc-pascal] Timezone information in a dataset datetimefield?

2011-07-25 Thread Reinier Olislagers
On 25-7-2011 13:31, Ludo Brands wrote: >> So you're saying that this: >> 2011-07-22T15:00:00+02:00 >> can be simplified to this: 2011-07-22T15:00:00 >> ? > It does. It uses TZ to convert if specified but assumes local time if not > specified. Tested this when importing access 2010 data. Ok, that

RE : RE : [fpc-pascal] Timezone information in a dataset datetimefield?

2011-07-25 Thread Ludo Brands
> So you're saying that this: > 2011-07-22T15:00:00+02:00 > can be simplified to this: 2011-07-22T15:00:00 > ? > I'll amend my simple ADO.Net test program to import XML and > see what it does. > > If that is true, it would save a huge amount of aggravation. > It does. It uses TZ to convert if

Re: RE : [fpc-pascal] Timezone information in a dataset datetime field?- updated

2011-07-25 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 25-7-2011 12:09, Mark Morgan Lloyd wrote: Pretty much the same for PostgreSQL. I went through all this a few months ago, and while I didn't explore data entry I found that for data output I had to apply corrections myself although I could get properties of the curren

Re: RE : RE : [fpc-pascal] Timezone information in a dataset datetimefield?- updated

2011-07-25 Thread Reinier Olislagers
On 25-7-2011 11:57, Ludo Brands wrote: >>> That is also what most of the underlying databases do. They store >>> everything in UTC and convert to local time. Only for those that >>> support "timezoned" field types (fe. oracle timestamp_TZ) you can >>> specify a timezone when entering data. MySQL

Re: RE : [fpc-pascal] Timezone information in a dataset datetime field?

2011-07-25 Thread Reinier Olislagers
On 25-7-2011 11:51, Ludo Brands wrote: >> Runing an ADO.NET demo program I found out that the ADO.NET >> variant requires timezone info in its date/time fields. In a >> sample export I did, it is set to my timezone (UTC+2 at this moment). > ADO.NET exports timezones but it isn't required for impo

Re: RE : [fpc-pascal] Timezone information in a dataset datetime field?- updated

2011-07-25 Thread Reinier Olislagers
On 25-7-2011 12:09, Mark Morgan Lloyd wrote: > Pretty much the same for PostgreSQL. I went through all this a few > months ago, and while I didn't explore data entry I found that for data > output I had to apply corrections myself although I could get properties > of the current timezone from an in

Re: RE : [fpc-pascal] Timezone information in a dataset datetime field?- updated

2011-07-25 Thread Mark Morgan Lloyd
Ludo Brands wrote: 1. Is there any way of knowing what kind of timezone a datetime value should be in a FPC dataset? (I suppose not...) No, there is no way. It's always supposed to be 'local time'. That is also what most of the underlying databases do. They store everything in UTC and conve

RE : RE : [fpc-pascal] Timezone information in a dataset datetimefield?- updated

2011-07-25 Thread Ludo Brands
> I realize having a local timezone option will result in a > hornet's nest of adjustments for Daylight Saving Time etc... As per previous messages, why bother? It is not a requirement for importing data in ADO.NET. Ludo ___ fpc-pascal maillist -

RE : RE : [fpc-pascal] Timezone information in a dataset datetimefield?- updated

2011-07-25 Thread Ludo Brands
> > That is also what most of the underlying databases do. They store > > everything in UTC and convert to local time. Only for those that > > support "timezoned" field types (fe. oracle timestamp_TZ) you can > > specify a timezone when entering data. MySQL fe. doesn't > have support for this.

RE : [fpc-pascal] Timezone information in a dataset datetime field?

2011-07-25 Thread Ludo Brands
> Runing an ADO.NET demo program I found out that the ADO.NET > variant requires timezone info in its date/time fields. In a > sample export I did, it is set to my timezone (UTC+2 at this moment). > ADO.NET exports timezones but it isn't required for import. Since the main concern is to export

Re: RE : [fpc-pascal] Timezone information in a dataset datetime field?- updated

2011-07-25 Thread Reinier Olislagers
On 25-7-2011 11:21, Reinier Olislagers wrote: > On 25-7-2011 10:50, Ludo Brands wrote: 1. Is there any way of knowing what kind of timezone a >>> datetime value should be in a FPC dataset? (I suppose not...) >>> >>> No, there is no way. It's always supposed to be 'local time'. >>> >> >>

Re: RE : [fpc-pascal] Timezone information in a dataset datetime field?- updated

2011-07-25 Thread Reinier Olislagers
On 25-7-2011 10:50, Ludo Brands wrote: >>> 1. Is there any way of knowing what kind of timezone a >> datetime value >>> should be in a FPC dataset? (I suppose not...) >> >> No, there is no way. It's always supposed to be 'local time'. >> > > That is also what most of the underlying databases do.

RE : [fpc-pascal] Timezone information in a dataset datetime field?- updated

2011-07-25 Thread Ludo Brands
> > 1. Is there any way of knowing what kind of timezone a > datetime value > > should be in a FPC dataset? (I suppose not...) > > No, there is no way. It's always supposed to be 'local time'. > That is also what most of the underlying databases do. They store everything in UTC and convert to