The International Organization for Standardization is a union of national standardization organizations out of more than 150 countries elaborating standards in nearly all sectors excepted electrics and telecommunications.
Questions tagged [iso]
1064 questions
182
votes
2 answers
Extracting double-digit months and days from a Python date
Is there a way to extract month and day using isoformats? Lets assume today's date is March 8, 2013.
>>> d = datetime.date.today()
>>> d.month
3
>>> d.day
8
I want:
>>> d = datetime.date.today()
>>> d.month
03
>>> d.day
08
I can do this by writing…

codingknob
- 11,108
- 25
- 89
- 126
140
votes
10 answers
convert iso date to milliseconds in javascript
Can I convert iso date to milliseconds?
for example I want to convert this iso
2012-02-10T13:19:11+0000
to milliseconds.
Because I want to compare current date from the created date. And created date is an iso date.

Robin Carlo Catacutan
- 13,249
- 11
- 52
- 85
114
votes
3 answers
Why an unnamed namespace is a "superior" alternative to static?
The section $7.3.1.1/2 from the C++ Standard reads:
The use of the static keyword is
deprecated when declaring objects in a
namespace scope; the unnamed-namespace
provides a superior alternative.
I don't understand why an unnamed namespace…

Nawaz
- 353,942
- 115
- 666
- 851
83
votes
2 answers
What is C17 and what changes have been made to the language?
As I was checking news about GCC 8, I saw that they added support for the 2017 version of the C language (not C++17, really C17). But I can't find any information about it on Internet.
Is it a new ISO version like C11, or just a codename used by the…

informaticienzero
- 1,796
- 1
- 12
- 22
74
votes
11 answers
What is the simplest standard conform way to produce a Segfault in C?
I think the question says it all. An example covering most standards from C89 to C11 would be helpful. I though of this one, but I guess it is just undefined behaviour:
#include
int main( int argc, char* argv[] )
{
const char *s =…

math
- 8,514
- 10
- 53
- 61
66
votes
8 answers
Where can I find a list of language + region codes?
I have googled (well, DuckDuckGo'ed, actually) till I'm blue in the face, but cannot find a list of language codes of the type en-GB or fr-CA anywhere.
There are excellent resources about the components, in particular the W3C I18n page, but I was…

Dɑvïd
- 1,929
- 2
- 16
- 26
62
votes
2 answers
In an ISO 8601 date, is the T character mandatory?
I'm wondering if the following date is ISO8601 compliant :
2012-03-02 14:57:05.456+0500
(for sure, 2012-03-02T14:57:05.456+0500 is compliant, but not that much human readable !)
IOW, is the T between date and time mandatory ?

SCO
- 1,832
- 1
- 24
- 45
55
votes
11 answers
Converting country codes in .NET
In .NET is there any way to convert from three letter country codes (defined in ISO 3166-1 alpha-3) to two letter language codes (defined in ISO 3166-1 alpha-2) eg. convert BEL to BE?
Have looked at the RegionInfo class in System.Globalization but…

flalar
- 1,181
- 3
- 12
- 23
54
votes
2 answers
UTC vs ISO format for time
I'm trying to understand the difference between UTC and ISO formats and when to use what when transferring messages between servers. So When I try the following this is what I get
new Date().toISOString()
"2019-11-14T00:55:31.820Z"
new…

tmp dev
- 8,043
- 16
- 53
- 108
54
votes
3 answers
MP4 File Format Specification
I am writing some code to parse MP4 files ...
Is there a free source to get documentation on the MP4 File Format Specification. So far I have only found an ISO document which I would need to purchase ISO PDF. Is MP4 Not an open standard ?

avrono
- 1,648
- 3
- 19
- 40
54
votes
3 answers
Convert JSON date string to Python datetime
When translating dates to JSON, javascript is saving dates in this format:
2012-05-29T19:30:03.283Z
However, I am not sure how to get this into a python datetime object. I've tried these:
# Throws an error because the 'Z' isn't accounted…

Chris Dutrow
- 48,402
- 65
- 188
- 258
53
votes
2 answers
Get date from ISO week number in Python
Possible Duplicate:
What’s the best way to find the inverse of datetime.isocalendar()?
I have an ISO 8601 year and week number, and I need to translate this to the date of the first day in that week (Monday). How can I do this?
datetime.strptime()…

Erik Cederstrand
- 9,643
- 8
- 39
- 63
51
votes
5 answers
Is there an ISO standard for city identification?
I want to make service with API that give some info about a city (in any country) by some id.
What I should choose as id for cities? Does there exist an ISO standard for city identification? If so, where I can get a list of city ids?

petRUShka
- 9,812
- 12
- 61
- 95
51
votes
8 answers
ISO/IEC Website and Charging for C and C++ Standards
The ISO C Standard (ISO/IEC 9899) and the ISO C++ Standard (ISO/IEC 14882) are not published online; instead, one must purchase the PDF for each of those standards. I am wondering what the rationale is behind this... is it not detrimental to both…

Michael Aaron Safyan
- 93,612
- 16
- 138
- 200
49
votes
2 answers
Are there any non-twos-complement implementations of C?
As we all no doubt know, the ISO C standard (and C++ as well, I think, though I'm more interested on the C side) allows three underlying representations of signed numbers:
two's complement;
ones' complement; and
sign/magnitude.
Wikipedia's entry…

paxdiablo
- 854,327
- 234
- 1,573
- 1,953