Graham Fawcett scripsit: > This may not be Chicken-specific, but is there an existing library > that, given a date (year,month,day) and given the current locale, will > tell me the timezone in which the date falls? I'm in the EST zone, but > during warmer months, dates fall within the EDT zone. I'd like to be > able to create a date and have the library provide the correct > timezone. (Unix-specific answers are OK.)
The locale as such is not relevant to time zones, which are stored in the TZ environment variable. ("en_US" is just one locale, but it spans eight time zones.) > I can't find anything in SRFI-19 to help me here. Using date(1), I can > do 'date -d "yyyymmdd" +%z' but that seems silly... strftime(3), which should be in unit posix but isn't, is your friend; it's the library routine underlying date(1). -- Winter: MIT, John Cowan Keio, INRIA, [EMAIL PROTECTED] Issue lots of Drafts. http://www.ccil.org/~cowan So much more to understand! Might simplicity return? (A "tanka", or extended haiku) _______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users