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]
967 questions
140
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…
![](../../users/profiles/668624.webp)
codingknob
- 8,950
- 18
- 77
- 113
97
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…
![](../../users/profiles/415784.webp)
Nawaz
- 327,095
- 105
- 629
- 812
94
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.
![](../../users/profiles/987447.webp)
Robin Carlo Catacutan
- 11,461
- 9
- 48
- 79
70
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…
![](../../users/profiles/6060256.webp)
informaticienzero
- 1,616
- 1
- 10
- 20
70
votes
9 answers
javascript regex iso datetime
does anyone have a good regex pattern for matching iso datetimes?
ie: 2010-06-15T00:00:00
![](../../users/profiles/140811.webp)
Scott Klarenbach
- 31,139
- 14
- 58
- 87
67
votes
10 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 =…
![](../../users/profiles/1051355.webp)
math
- 7,734
- 10
- 50
- 60
62
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…
![](../../users/profiles/232251.webp)
Dɑvïd
- 1,849
- 2
- 15
- 23
48
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…
![](../../users/profiles/71100.webp)
flalar
- 1,065
- 3
- 12
- 22
48
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…
![](../../users/profiles/136540.webp)
Michael Aaron Safyan
- 87,518
- 14
- 130
- 194
47
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 ?
![](../../users/profiles/603421.webp)
SCO
- 1,594
- 1
- 18
- 38
47
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?
![](../../users/profiles/359866.webp)
petRUShka
- 9,231
- 12
- 54
- 86
46
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…
![](../../users/profiles/219640.webp)
Erik Cederstrand
- 7,783
- 6
- 34
- 57
44
votes
4 answers
Are there any plans for a future C standard after C11?
I searched on the open standards website, particularly the C working group homepage but only found information about C11.
They seem to have regular meetings and discuss different features and extensions, but they never actually mention a future C…
![](../../users/profiles/925649.webp)
Jens
- 5,066
- 5
- 46
- 64
44
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…
![](../../users/profiles/14860.webp)
paxdiablo
- 772,407
- 210
- 1,477
- 1,841
43
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 ?
![](../../users/profiles/2032771.webp)
avrono
- 1,458
- 3
- 17
- 38