ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t)
	{
	struct tm *ts;
#if defined(THREADS) && !defined(WIN32)
	struct tm data;
#endif
#if defined(THREADS) && !defined(WIN32)
	gmtime_r(&t,&data);
    ts=&data;
#else
	ts=gmtime(&t);
#endif
	if((ts->tm_year >= 1950) && (ts->tm_year < 2050))
					return ASN1_UTCTIME_set(s, t);
	return ASN1_GENERALIZEDTIME_set(s,t);
	}
['ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t)\n\t{\n\tstruct tm *ts;\n#if defined(THREADS) && !defined(WIN32)\n\tstruct tm data;\n#endif\n#if defined(THREADS) && !defined(WIN32)\n\tgmtime_r(&t,&data);\n    ts=&data;\n#else\n\tts=gmtime(&t);\n#endif\n\tif((ts->tm_year >= 1950) && (ts->tm_year < 2050))\n\t\t\t\t\treturn ASN1_UTCTIME_set(s, t);\n\treturn ASN1_GENERALIZEDTIME_set(s,t);\n\t}']